title: Symfony2 - Twig - How can I send parameters to the parent template?
body: <p>I am working on a PHP project using Symfony2 with Twig templating, and I can't find a solution for this problem.</p>
  
  <p>I have an admin bundle and all the templates extend from admin base which has a master template with a menu.</p>
  
  <p>I need to set the current tab of the menu in the base template of the page to selected when the user is on that page. </p>
  
  <p>Is there any way to pass parameter to the base template through <a href="http://twig.sensiolabs.org/doc/tags/extends.html" rel="noreferrer">extends</a>?</p>