Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/11/2015, 01:53
Chino27
 
Fecha de Ingreso: septiembre-2015
Mensajes: 71
Antigüedad: 8 años, 7 meses
Puntos: 0
Respuesta: No muestra nada después de haber hecho un crud

No lo hice yo, lo generé automaticamente por el terminal, por eso me parece raro que no funcione, he metdo el template y tampoco

Código PHP:
/**
     * Lists all Roles entities.
     *
     * @Route("/", name="admin_role")
     * @Method("GET")
     * @Template("TMKAdminBundle:Roles:index.html.twig")
     */
    
public function indexAction()
    {
        
$em $this->getDoctrine()->getManager();

        
$entities $em->getRepository('TMKAdminBundle:Roles')->findAll();

        return array(
            
'entities' => $entities,
        );
    }