Issues

ZF-11398: Model resource types not autoloading in application

Description

I had a number of models and related classes (mappers and dbtables) in a module and followed the structure and 'namespace' convention so that the classes would be autoloaded without no configuration required (example, Module_Model_Name would discover the class located in application/modules/module/models/Name.php).

However, I decided to move some of the models to be directly under the application, as they are generic and would be needed across multiple modules. My configuration is set such that appnamespace = "Application"

I moved the models to application/models and renamed them using the form Application_Model_Name. Now, I just get 'class not found' errors from PHP - I've tried a number of 'fixes', including setting the resource types specifically in the application bootstrap as per http://framework.zend.com/manual/1.10/…, but no joy.

Can we have the application namespace work like the modules?

Comments

Closing as not an issue.

Please direct support requests to either the mailing list, or #zftalk on freenode irc. and provide an outline of your directory structure, and the rest of your configuration.

The resources for the application namespace are loaded in the same way as the module resource, they simply use the namespace from the config rather than the module name.

Apologies if this was the wrong place - but I was doing exactly as the manual instructed (as per the information in the description) and not getting the expected behaviour.