开发者

Cannot redeclare class Zend_Loader

开发者 https://www.devze.com 2023-04-06 08:41 出处:网络
Fatal error: Cannot redeclare class Zend_Loader in C:\\xampp\\htdocs\\shoppingCart\\ library\\Zend\\Loader.php on line 31
Fatal error: Cannot redeclare class Zend_Loader in C:\xampp\htdocs\shoppingCart\
library\Zend\Loader.php on line 31

zf create action add Index

When i try to create an Action in my Controller开发者_如何学编程, I get this error. When I commented out my

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

in my application.ini I get this error now.

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


Remove or comment on this line from application.ini

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

and then

zf create action add 

Note: I have removed the Index Controller, the action would created in Index Controller.

0

精彩评论

暂无评论...
验证码 换一张
取 消