Hi, Is it possible to check the get parameters ?
In my case, I have a get parameter "page". In my controller : $request = $this->get('request'); $page = $request->query->get('page'); if (!$page) $page = 1; How can I : - check the type of this request parameter ? In this case, I want an integer - assign a default value ? I know I can make this with plain PHP, with regexp, "is_int" or "is_numeric"... If I could do this with S2 it would make me happy :) And is it possible to make such tests/assignments in the routing files ? Thanks, -- Christophe Beyer cbe...@cap-tic.fr -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en