On 11/21/10 8:22 PM, noel guilbert wrote:
You can get it through the _view variable:{{ _view.request.getParameter('page') }}
Never use _view. It's not documented and can be removed any time. Fabien
++ Noel On Sun, Nov 21, 2010 at 7:58 PM, Francis Besset <[email protected] <mailto:[email protected]>> wrote: Hi all, I am currently creating my project with Symfony2. I started making templates with PHP but I want to migrate on Twig. How can I access at the instance Request in the twig template? With PHP there is $view['request']. Thanks, Francis. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com <http://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 [email protected] <mailto:[email protected]> To unsubscribe from this group, send email to [email protected] <mailto:symfony-users%[email protected]> For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Noël GUILBERT http://www.noelguilbert.com/ Twitter : http://twitter.com/noelguilbert http://www.sensiolabs.com http://www.symfony-project.com Sensio Labs Tél: +33 1 40 99 80 80 -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
