Zend Framework Modules can't find/load Models..

Posted by user284503 on Stack Overflow See other posts from Stack Overflow or by user284503
Published on 2010-03-30T04:38:58Z Indexed on 2010/03/30 4:43 UTC
Read the original article Hit count: 281

Filed under:
|

For some frustrating reason, I configured some Modules, which seemed to work fine, However I cannot load a Modules Models. If I move the Models to the Default they load, but I just can't get the Framework to find them locally..

Example:

My Modules Directory is:

application\modules\books\models\books.php (books is my Model)

class Application_Module_Books_Model_Books extends Zend_Db_Table_Abstract {}

I also tried..

Books_Model_Books, Model_Books, books, Modules_.. you name it I tried it :)

My controller is in the Books Module, and is an Index Controller, and it can never find the Local Model.

I'm using Application.ini and it is configured this way:

resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 1
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"

I have a BootStrap in the Modules Directory:

class Admin_Bootstrap extends Zend_Application_Module_Bootstrap { }

I'm on Zend Framework 1.10, and ideas.. ?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about model