Filtrar json de una XMLHttpRequest

28 views
Skip to first unread message

Josep Lluis

unread,
Feb 12, 2013, 9:22:30 PM2/12/13
to sif...@googlegroups.com
Saludos!, soy nuevo aqui y llevo poco con php , no llega al año...

Mi código:

$post = \Sifo\FilterRequest::getInstance();
$isSent = $post->isSent('search');
var_dump($isSent);

Respuesta:

bool(false)?¿?

Alguna idea?

Josep Lluis

unread,
Feb 12, 2013, 9:31:42 PM2/12/13
to sif...@googlegroups.com


El dimecres 13 de febrer de 2013 3:22:30 UTC+1, Josep Lluis va escriure:
Solventado!!  ... habia una #id  mal puesta $().val() ...  de la peticion de $.ajax; )
demasiado rápido he publicado pero, llevaba rato con esto... ; )

Sergio Ambel Santoyo

unread,
Feb 13, 2013, 2:22:06 AM2/13/13
to sifophp

Hola,

isSent se usa para validar si se ha recibido un campo.

Usa getString o getInteger para recibir el dato.

Échale un ojo a libs/Filter.php para conocer los métodos disponibles.

Suerte!

--
You received this message because you are subscribed to the Google Groups "SIFO, PHP framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sifophp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages