title: The controller must return a response
body: <p>This is my controller:</p>
  
  <pre><code>    /**
   * Finds and displays a Formacion entity.
   *
   * @Route("/{id}/show", name="curso_show")
   * @Template()
   */
  public function showAction($id)
  {
      $em = $this-&gt;getDoctrine()-&gt;getEntityManager();
  
      $curso = $em-&gt;getRepository('GitekUdaBundle:Curso')-&gt;find($id);
  
      if (!$curso) {
          throw $this-&gt;createNotFoundException('Unable to find Curso entity.');
      }
  
      $deleteForm = $this-&gt;createDeleteForm($id);             
  
      // Detalle Formación
      $detcurso = new Detcurso();
      $formdetcurso   = $this-&gt;createForm(new DetcursoType(), $detcurso);
  
      return array(
          'curso'      =&gt; $curso,
          'delete_form' =&gt; $deleteForm-&gt;createView(),  
          'detcurso'      =&gt; $detcurso,
          'formdetcurso' =&gt; $formdetcurso,
          );
  }
  </code></pre>
  
  <p>In my development enviroment works fine (Mac) but when I go to my production enviroment (CentOS server) I´m getting </p>
  
  <pre><code>The controller must return a response (Array(curso =&gt; Object(Gitek\UdaBundle\Entity\Curso), delete_form =&gt; Object(Symfony\Component\Form\FormView), detcurso =&gt; Object(Gitek\UdaBundle\Entity\Detcurso), formdetcurso =&gt; Object(Symfony\Component\Form\Form)) given).
  </code></pre>
  
  <p>500 Internal Server Error - LogicException</p>
  
  <p>Any clue?</p>