title: Symfony2 multiple @template in a controller
body: <p>I am very new to symfony2 and trying very hard for past few days to figure out a problem. My controller is</p>
  
  <pre><code>&lt;?php
  
  namespace Myname\AdminBundle\Controller;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  
  class DefaultController extends Controller
  {
      /**
       * @Route("/admin/{type}/{nav}", defaults={"nav"="nil"})
       * @Template("MyBundle::index.html.twig")
       */
      public function indexAction($type, $nav)
      {
          return array('type' =&gt; $type, 'nav' =&gt; $nav);
  
      }
  
      /**
       * @Route("/myLink/accounts", name="page_accounts")
       * @Template("MyBundle::accounts.html.twig")
       */
      public function accountsAction()
      {
          return $this-&gt;render('MyBundle::accounts.html.twig');
      }
  }
  </code></pre>
  
  <p>But the problem I am facing is, which ever link I am trying to use, it is using the first defined template and the second template is never rendered. But if I remove the first template from the code, the second one is working perfectly. Any comments will be really great as I am stuck for last 4 days. Thanks in advance.</p>