Using Symfony to access url parameters in an action like this
$this->getRequestParameter('myUrlParameter');
How can I access this parameter in the root template, where I am not within the action? I tried many things already like
echo $context->getRequest()->getParameter('pool');
and
echo $context->getParameter('pool');
Which didn't work. With
echo sfContext::getInstance()->getRouting()->getCurrentInternalUri();
I get the whole url - which is not what I want. I feel like there must be a simple way to access this information ...
$_GET. (However, you should think about whether your template is the right place to do this in the first place. Sounds like it might rather belong into the controller.)