I've added the Propel ORM to my Zend Framework project.
The following files are under my /application/configs folder:
- application.ini
- build.properties
- classmap-gentsefeesten-conf.php
- gentsefeesten-conf.php
- runtime-conf.xml
- schema.xml
Under /application/models I have:
- gentsefeesten
- map
- om
query's
I work with modules so I have a modules folder with two folders in it (my modules).
In my "index.php" file I've added the following: (third rule)
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
realpath(APPLICATION_PATH . '/models'),//propel
get_include_path(),
)));
So the application gets my models in my models folder.
But I always get the following error :
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in /Applications/MAMP/htdocs/GentseFeesten/library/Zend/Controller/Dispatcher/Standard.php:248
Stack trace:
#0 /Applications/MAMP/htdocs/GentseFeesten/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /Applications/MAMP/htdocs/GentseFeesten/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#2 /Applications/MAMP/htdocs/GentseFeesten/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#3 /Applications/MAMP/htdocs/GentseFeesten/public/index.php(27): Zend_Application->run()
#4 {main} Next exception 'Zend_Controller_Exception' with message 'Invalid controller specified (error)
#0 /Applications/MAMP/htdocs/GentseFeesten/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Re in /Applications/MAMP/htdocs/GentseFeesten/library/Zend/Controller/Plugin/Broker.php on line 336