【发布时间】:2013-09-06 14:25:03
【问题描述】:
这是我在 Zend 中的第一个程序,我使用 zf create project abc 创建了一个项目。 在运行程序时出现以下错误 " 致命错误:在/usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.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): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL) #3 /var/www/zuund/public/index.php(25): Zend_Application->bootstrap() #4 {main} 抛出 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/ BootstrapAbstract.php 第 694 行"
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
等待回复
【问题讨论】: