安装ZendFramework运行项目报错误(easy)

错误现象是:
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 C:\APMServ5.2.6\www\htdocs\study_zend\library\Zend\Loader.php on line 266
hello from Index#index
如果基本情况是这样的话:只要在index.php 中把一下两行代码替换即可:
原始:
require_once "Zend/Loader.php";
Zend_Loader::registerAutoload();
替换为:
require_once ("Zend/Loader/Autoloader.php");
$autoloader = Zend_Loader_Autoloader::getInstance();
这样就Ok了!O(∩_∩)O~

标签: ZendFramework

25
Sep 2010
AUTHOR WiFeng
CATEGORY Asset
COMMENTS No Comments

添加新评论 »

   点击刷新验证码