title: symfony2 500 Internal Server Error
body: <p>I am trying to code my homepage, but get a 500 Internal Server Error. Funny thing, the echo test works, so the template rendering seems to fail somehow.</p>
  
  <p>my routimg.yml:</p>
  
  <pre><code>klik_core_homepage:
      path:     /
      defaults: { _controller: KlikCoreBundle:Homepage:index }
  </code></pre>
  
  <p>my HomepageController</p>
  
  <pre><code>namespace Klik\CoreBundle\Controller;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Symfony\Component\HttpFoundation\Request;
  
  class HomepageController extends Controller
  {
      public function indexAction(Request $request)
      {
  
      $twigParams = [];
      //echo "test";
  
      return $this-&gt;render('KlikCoreBundle:Homepage:index.html.twig', $twigParams);       
     }
  }
  </code></pre>
  
  <p>Edit:
  I found the second route to /, its in AppBundle\Controller\DefaultController and uses annotation in stead of yml, like the rest of my setup. </p>
  
  <pre><code>//AppBundle\Controller\DefaultController
  /**
  * @Route("/", name="homepage")
  */
  </code></pre>
  
  <p>changed it to </p>
  
  <pre><code>/**
  * @Route("/old", name="homepageold")
  */
  </code></pre>
  
  <p>sudo app/console router:debug result:</p>
  
  <p>result</p>
  
  <p>klik_single_zoek                  ANY      ANY    ANY  /zoek<br>
     klik_core_homepage                ANY      ANY    ANY  /<br>
     klik_profiel_inschrijven          ANY      ANY    ANY  /inschrijven<br>
     klik_profiel_inschrijvensubmit    ANY      ANY    ANY  /inschrijven/create<br>
     klik_profiel_edit                 ANY      ANY    ANY  /profiel/aanpassen<br>
     login                             ANY      ANY    ANY  /login<br>
     login_check                       ANY      ANY    ANY  /login_check<br>
     homepageold                       ANY      ANY    ANY  /old<br>
     fos_user_security_login           ANY      ANY    ANY  /login<br>
     fos_user_security_check           POST     ANY    ANY  /login_check<br>
     fos_user_security_logout          ANY      ANY    ANY  /logout<br>
     fos_user_profile_show             GET      ANY    ANY  /profile/    </p>
  
  <p>But unfortunately its not the cause of 500 error since its still there after cache:clear.</p>