Bonjour,
Voulant utiliser l'application exemple du livre ZF de J.Pauli avec le framework CSS Yaml, je me rend compte de plusieurs problemes dans les controlleurs.
Je fais ceci en gardant la meme façon de faire que le livre :Tout "à l'air" de bien fonctionner (pas d'erreur sur l'ecran) sauf que, dans les logs, j'ai ce genre d'erreurs :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 echo $this->headStyle() ->appendStyle('@import "css/my_layout.css";') ->appendStyle('@import "css/patches/patch_my_layout.css";');Puis, si je change de langue (http://zf.site/index/language?lang=en), là par contre, ces erreurs s'affichent et arrêtent le script. Dans l'url ,j'ai ceci : http://zf.site/css/screen/images/bg_blue.gif.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Stack trace: #0 D:\wamp\offline-shared\includes\zf\svn\trunk\library\Zend\Controller\Front.php(936): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\wamp\www\zf.site\html\index.php(211): Zend_Controller_Front->dispatch() #2 {main}127.0.0.1 NOTICE (5): exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (yaml)' in D:\wamp\offline-shared\includes\zf\svn\trunk\library\Zend\Controller\Dispatcher\Standard.php:241 Stack trace: #0 D:\wamp\offline-shared\includes\zf\svn\trunk\library\Zend\Controller\Front.php(936): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\wamp\www\zf.site\html\index.php(211): Zend_Controller_Front->dispatch() #2 {main}127.0.0.1 NOTICE (5): exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (css)' in D:\wamp\offline-shared\includes\zf\svn\trunk\library\Zend\Controller\Dispatcher\Standard.php:241 Stack trace: #0 D:\wamp\offline-shared\includes\zf\svn\trunk\library\Zend\Controller\Front.php(936): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\wamp\www\zf.site\html\index.php(211): Zend_Controller_Front->dispatch() #2 {main}
On dirai que ZF prend le css comme un controleur... Je comprends pas trop.
Merci à tous,
Fabrice
Partager