title: How to access a url parameter in template using Symfony (not within the action)?
body: <p>Using Symfony to access url parameters in an action like this</p>
  
  <pre><code>$this-&gt;getRequestParameter('myUrlParameter');
  </code></pre>
  
  <p>How can I access this parameter in the root template, where I am not within the action? I tried many things already like</p>
  
  <pre><code>echo $context-&gt;getRequest()-&gt;getParameter('pool');
  </code></pre>
  
  <p>and</p>
  
  <pre><code>echo $context-&gt;getParameter('pool');
  </code></pre>
  
  <p>Which didn't work. With</p>
  
  <pre><code>echo sfContext::getInstance()-&gt;getRouting()-&gt;getCurrentInternalUri();
  </code></pre>
  
  <p>I get the whole url - which is not what I want.
  I feel like there must be a simple way to access this information ...</p>