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
答案 0 :(得分:2)
从application.ini
删除或评论此行includePaths.library = APPLICATION_PATH "/../library"
然后
zf create action add
注意:我已删除索引控制器,该操作将在索引控制器中创建。