我在.htaccess中添加了 SetEnv APPLICATION_ENV开发这一行
我有这个错误
Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Illegal circular inheritance detected' in C:\wamp\www\Zend_Include\library\Zend\Config.php on line 431
( ! ) Zend_Config_Exception: Illegal circular inheritance detected in C:\wamp\www\Zend_Include\library\Zend\Config.php on line 431
如果我删除该行,该应用程序工作正常,但它始终处于生产阶段。我怎样才能改变我的开发阶段。
仅供参考,我使用wamp服务器
的.htaccess
SetEnv APPLICATION_ENV development
RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
的application.ini
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
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
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : development]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
答案 0 :(得分:0)
您正尝试从开发部分继承开发。
只需更改此行:
[development : development]
为:
[development : production]