Bonjour,
Je débute avec l'utilisation du framework zend et j'essaye de réaliser le tutorial sur l'approche MVC (cf. titre).
C'est apparemment cette ligne qui va chercher mon layout qui pose problème :
puisque quand je la met en commentaire la page d'accueil se lance sans problème même si l'application ne fonctionne pas.
Code : Sélectionner tout - Visualiser dans une fenêtre à part Zend_Layout::startMvc(array('layoutPath'=>'./application/layouts'));
EDIT, en fait plus précisement dans mon fichier layout.phtml le code du <head> n'a pas l'air très apprécié :
Pourtant pour le coup c'est du copier-coller !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title><?php echo $this->escape($this->title); ?></title> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->baseUrl();?>/public/css/site.css" /> </head>
Je vous donne l'erreur ( un peu lourde dsl...):
Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name BaseUrl was not found in the registry.' in C:\wamp\www\tutoriel-zf\library\Zend\Loader\PluginLoader.php:370 Stack trace: #0 C:\wamp\www\tutoriel-zf\library\Zend\View\Abstract.php(1114): Zend_Loader_PluginLoader->load('BaseUrl') #1 C:\wamp\www\tutoriel-zf\library\Zend\View\Abstract.php(545): Zend_View_Abstract->_getPlugin('helper', 'baseUrl') #2 C:\wamp\www\tutoriel-zf\library\Zend\View\Abstract.php(312): Zend_View_Abstract->getHelper('baseUrl') #3 [internal function]: Zend_View_Abstract->__call('baseUrl', Array) #4 C:\wamp\www\tutoriel-zf\application\layouts\layout.phtml(8): Zend_View->baseUrl() #5 C:\wamp\www\tutoriel-zf\library\Zend\View.php(107): include('C:\wamp\www\tut...') #6 C:\wamp\www\tutoriel-zf\library\Zend\View\Abstract.php(787): Zend_View->_run('.\application\l...') #7 C:\wamp\www\tutoriel-zf\library\Zend\Layout.php(781): Zend_View_Abstract->render('layout.phtml') #8 C:\wamp\www\tutoriel-zf\library\Zend\Layout\Co in C:\wamp\www\tutoriel-zf\library\Zend\Loader\PluginLoader.php on line 370
Partager