Jump to content

Zendframework modules and models


ajlisowski

Recommended Posts

Hey all, I am trying to get my module to properly auto-load my resources. Right now I have two modules- login and projectplan.

 

login uses a form that is located in: applications/modules/login/forms/Login.php And the class is login_Form_Login. This gets loaded fine.

 

Projectplan has a model and it is located in: applications/modules/projectplan/models/DbTable/project.php. And its class name is: projectplan_Model_DbTable_project

 

It is giving the following error: Class 'projectplan_Model_DbTable_project' not found

 

Any idea why its not finding this model?

 

In my config I have: resources.modules[] = ""

 

Which should initiate the autoloader for each of my modules.

Link to comment
https://forums.phpfreaks.com/topic/206293-zendframework-modules-and-models/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.