这是我在 Zend 中的第一个程序,我用 zf create project abc 创建了一个项目。在运行程序时,我收到以下错误“致命错误:未捕获的异常 'Zend_Application_Bootstrap_Exception' 并在 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract 中找到消息“资源匹配“frontController”未找到”。 php:694 堆栈跟踪:#0 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php(626): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('frontController') #1 /usr/share/ php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #2 /usr/share/php/libzend-framework-php/Zend/Application.php(355) ):
application.ini 文件内容为
[production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
等待回复