index.php : 'No default controller directory registered with front controller'
Salut,
J'ai un petit souci, lorsque j'appel mon bootstrap index.php j'obtiens l'erreur suivante :
Citation:
Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'No default controller directory registered with front controller' in /www/library/Zend/Application/Bootstrap/Bootstrap.php:91 Stack trace: #0 /www/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #1 /www/htdocs/sitezend_avance/html/index.php(17): Zend_Application->run() #2 {main} thrown in /www/library/Zend/Application/Bootstrap/Bootstrap.php on line 91
mon fichier /www/htdocs/sitezend_avance/html/index.php :
Code:
1 2 3 4 5 6 7
| <?php
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$app = new Zend_Application('/www/htdocs/sitezend_avance/application/config/application.ini');
$app->bootstrap()->run(); |
mon fichier /www/htdocs/sitezend_avance/application/config/application.ini :
Citation:
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = "/www/library/"
bootstrap.path = "/www/htdocs/sitezend_avance/application/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = "/www/htdocs/sitezend_avance/application/controllers"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
mon fichier /www/htdocs/sitezend_avance/application/Bootstrap.php :
Code:
1 2 3 4 5 6 7 8 9 10
| <?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
public function run()
{
Zend_Registry::set('config', new Zend_Config_Ini($this->getOptions()));
parent::run();
}
} |
Merci