Bonjour !
Je viens de me heurter à un "problème" et je me demande s'il y a une façon de le contourner.
Dans une de mes vues, j'utilise une balise <iframe> pour afficher un document pdf, comme ci-dessous :
Dans une page html pure, voilà le résultat :
Code : Sélectionner tout - Visualiser dans une fenêtre à part <iframe align="middle" width="680" height="450" src="<?php echo $this->publicDir ?>pdf/conventionDeGroupement.pdf"/>
Seulement, dans mon fichier.phtml, à l'exécution il s'attend à trouver à l'adresse <?php echo $this->publicDir ?>pdf/conventionDeGroupement.pdf" un controller. Du coup j'ai l'erreurY'a-t-il une astuce pas trop tordue pour avoir le même rendu visuel sans se heurter à ce problème ?Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (public)' in C:\wamp\www\...\library\Zend\Controller\Dispatcher\Standard.php:198 Stack trace: #0 C:\wamp\www\...\library\Zend\Controller\Front.php(929): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 C:\wamp\www\...\index.php(55): Zend_Controller_Front->dispatch() #2 {main} thrown in C:\wamp\www\...\library\Zend\Controller\Dispatcher\Standard.php on line 198
Merci![]()
Partager