这是我的完整错误:
严格标准:在第 145 行的 /Users/panda/Dropbox/www/_playground/myApp/Zend/Application/Resource/Frontcontroller.php 中以非静态方式访问静态属性 Bootstrap::$frontController
致命错误:在 /Users/panda/Dropbox/www/_playground/myApp/Zend/Registry.php:70 中未捕获的异常“Zend_Exception”和消息“注册表已初始化”堆栈跟踪:#0 /Users/panda/Dropbox/www /_playground/myApp/application/Bootstrap.php(217): Zend_Registry::setInstance(Object(Zend_Registry)) #1 /Users/panda/Dropbox/www/_playground/myApp/application/Bootstrap.php(56): Bootstrap- >_initSetupRegistry() #2 /Users/panda/Dropbox/www/_playground/myApp/Zend/Application/Bootstrap/BootstrapAbstract.php(669): Bootstrap->_initPrepare() #3 /Users/panda/Dropbox/www/_playground /myApp/Zend/Application/Bootstrap/BootstrapAbstract.php(622): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('prepare') 4 /Users/panda/Dropbox/www/_playground/myApp/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #5 /Users/panda/Dropbox/www/_playground/myApp/ Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL) #6 in /Users/panda/Dropbox/www/_playground/myApp/Zend/Registry.php on line 70
这是我的引导程序中的功能
/*
* Zend_Registry get's born here so it can be accesed
*/
protected function _initSetupRegistry()
{
self::$registry = new Zend_Registry(array(), ArrayObject::ARRAY_AS_PROPS);
Zend_Registry::setInstance(self::$registry);
}
如果您需要更多代码,请告诉我,我会喜欢一些查找问题的提示,或者如果有人知道确切的问题。
谢谢!