On 4/26/11 5:35 PM, winzou wrote:
My aim is to change the RequestFormat if there is a P-JAX header
defined, but only if the route requirement of _format (or _method or
whatever) allows it.
In other words, I want the route config file to decide if I can render a
different template for my action ( via
...->render('x:x:x.'.$request->getRequestFormat().'.twig') ) when I
receive a p-jax request.
Is there a better way than my listener ?
All information from the route is available in the request attributes.
Fabien
--
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
--
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