Ver Mensaje Individual
  #10 (permalink)  
Antiguo 12/06/2015, 11:52
JHONATHAN11
 
Fecha de Ingreso: mayo-2015
Mensajes: 50
Antigüedad: 9 años
Puntos: 0
Respuesta: Instalar KnpSnappyBundle en mi proyecto symfony2

Amigo Sabes por que me sale este error: FatalErrorException: Error: Interface 'Knp\Snappy\GeneratorInterface' not found in C:\xampp\htdocs\SICONDC\vendor\knplabs\knp-snappy-bundle\Knp\Bundle\SnappyBundle\Snappy\LoggableGene rator.php line 13

si este es mi mi controlador

Código PHP:
 public function reporteaeAction() {


        
$em $this->getDoctrine()->getManager();
        
$datos $em->getRepository('JHONATHANSicondcBundle:Materia')->findAll();
        
$this->get('knp_snappy.pdf')->generateFromHtml(
                
$this->renderView(
                        
'JHONATHANSicondcBundle:Secretaria:reporteae.html.twig', array(
                    
'datos' => $datos
                        
)
                ), 
'/path/to/the/file.pdf'
        
);
    }