>  기사  >  백엔드 개발  >  安装ZendFramework运行项目报异常

安装ZendFramework运行项目报异常

WBOY
WBOY원래의
2016-06-13 13:49:52920검색

安装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으로 문의하세요.