I have been struggeling with a simple issue with Zend Frameworks Zend Loader this evening that I thought was worth mentioning, this might help someone else out there.
I downloaded the latest version of Zend Framework, installed it, setup my project and crated the database. But, when I was going to use Zend Frameworks command line tool and create the models using:
$ zf.sh create dbtable.from-database
I got the following error message:
Fatal error: Cannot redeclare class Zend_Loader in /mylocation/library/Zend/Loader.php on line 31
I had not touched a single thing. Everything was a default Zend Framework install.
What turned out to be the solution was to edit the application/config/application.ini file and comment out the following line:
includePaths.library = APPLICATION_PATH "/../library"
Or completely remove it.
Hope this helps someone. 🙂