无法重新声明类Zend_Loader

时间:2011-09-19 11:41:33

标签: php zend-framework

Fatal error: Cannot redeclare class Zend_Loader in C:\xampp\htdocs\shoppingCart\
library\Zend\Loader.php on line 31

zf create action add Index

当我尝试在我的控制器中创建一个Action时,我收到此错误。当我评论我的

;includePaths.library = APPLICATION_PATH "/../library" 

在我的application.ini中,我现在收到此错误。

Fatal error: Call to a member function search() on a non-object in C:\xampp\php\
PEAR\Zend\Tool\Project\Provider\Action.php on line 92

1 个答案:

答案 0 :(得分:2)

从application.ini

删除或评论此行
includePaths.library = APPLICATION_PATH "/../library"

然后

zf create action add 

注意:我已删除索引控制器,该操作将在索引控制器中创建。