Search code examples
phpzend-frameworkincludezend-tool

Zend Framework - Create db-table from database - Error


After I do:

zf -p create dbtable.from-database

I get:

Cannot redeclare class Zend_Loader in /home/user/public_html/proj.dev/library/Zend/Loader.php on line 31

If we change the application.ini file generated and we commented the following line:

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

This seemed to work, and since we already have this on your public/index.php file, it seems that this is ok to comment.

However, I do not understand what is the relation between the provided error, and the lucky solution.

Does anyone know why this happened ?


Solution

  • Usually this error occurs when include_path is set twice! You have set the include_path somewhere else already.