title: One Symfony 2.0 Controller-Action with two different templates
body: <p>Is it possible to assign two different templates to an action in Symfony 2.0? In the following code, I wanna render the IF part and ELSE part with two different template.</p>
  
  <pre><code> /**
   *
   * @Route("/", name="search")
   * @Template("Bundle:Search:search.html.twig")
   */
  public function indexAction()
  {
      if ($searchText == null) {
  
          return array('form' =&gt; $form-&gt;createView(), 'form2' =&gt; $form2-&gt;createView());
  
      } else {
  
          return array('applicants' =&gt; $appCount, 'pagination' =&gt; $pagination, 'form' =&gt; $form-&gt;createView(),'form2' =&gt; $form2-&gt;createView());
      }
  }
  </code></pre>