首頁 >後端開發 >php教程 >安装ZendFramework运行项目报异常

安装ZendFramework运行项目报异常

WBOY
WBOY原創
2016-06-13 10:00:48762瀏覽

安装ZendFramework运行项目报错误
大家好 这个错误如何解决:
Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in D:\PHPnow-1.5.5_1\htdocs\ZendFrameworkBlog\library\Zend\Loader.php on line 258

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index.php)' in D:\PHPnow-1.5.5_1\htdocs\ZendFrameworkBlog\library\Zend\Controller\Dispatcher\Standard.php:242 Stack trace: #0 D:\PHPnow-1.5.5_1\htdocs\ZendFrameworkBlog\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\PHPnow-1.5.5_1\htdocs\ZendFrameworkBlog\index.php(74): Zend_Controller_Front->dispatch() #2 {main} thrown in D:\PHPnow-1.5.5_1\htdocs\ZendFrameworkBlog\library\Zend\Controller\Dispatcher\Standard.php on line 242
多谢

------解决方案--------------------
Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in D:\PHPnow-1.5.5_1\htdocs\ZendFrameworkBlog\library\Zend\Loader.php on line 258 
这段说的是registerAutoload在1.8.0中停用了,在2.0.0中将被删除。 Zend_Loader_Autoloader来代替。

试试再说。
------解决方案--------------------
require_once (Zend/Loade/Autoloader.php);
$autoloader = Zend_Loader_Autoloader::getInstance();
------解决方案--------------------
require_once (Zend/Loader/Autoloader.php);
$autoloader = Zend_Loader_Autoloader::getInstance();

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn