ZendFramework居然和EA冲突 很郁闷 搞了很久才找到资料解决这个问题
居然只有日文和德文的
留下备用
【エラー】
Fatal error: Cannot access protected property
Zend_Controller_Front::$_instance in
/(略)/php_include/library/Zend/Controller/Front.php on line
162
【対処方】
MAMPのeAcceleratorが悪さをしていた模様。相性が悪い?
php.iniのeAcceleratorの設定をコメント化するなどして止めたら解決。
【エラー】
Class 'Zend' not found in
/(略)/php_include/controllers/IndexController.php on line 2
「Zend::loadClass()」が使えなかった事で発生したエラー。
「requrei_once」に変えたら解決。
【エラー】
Fatal error: Uncaught exception
'Zend_Controller_Dispatcher_Exception'
with message 'Invalid controller specified (error)' in
/(略)/php_include/library/Zend/Controller/Dispatcher/Standard.php:193
Stack trace: #0
/(略)/php_include/library/Zend/Controller/Front.php(911):
Zend_Controller_Dispatcher_Standard->dispatch(
Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http)) #1
/(略)/php_include/library/Zend/Controller/Front.php(224):
Zend_Controller_Front->dispatch() #2
/(略)/htdocs/index.php(3):
Zend_Controller_Front::run('controllers') #3
{main} thrown in /(略)/php_include/library/Zend/
Controller/Dispatcher/Standard.php on line 193
requestを調べたところ、「views/scripts/index/index.phtml」を開こうとして、
「views/scripts/index/index.phtml」を作成したら解決。