首页 >后端开发 >php教程 >安装ZendFramework运行项目报异常

安装ZendFramework运行项目报异常

WBOY
WBOY原创
2016-06-13 10:00:48761浏览

安装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