Home  >  Article  >  Backend Development  >  安装ZendFramework运行项目报异常

安装ZendFramework运行项目报异常

WBOY
WBOYOriginal
2016-06-13 13:49:52880browse

安装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();

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn