Issue Type: Bug Created: 2011-05-23T06:42:25.000+0000 Last Updated: 2011-05-23T23:51:44.000+0000 Status: Resolved Fix version(s): Reporter: Stuart Jones (horuskol) Assignee: Ryan Mauger (bittarman) Tags: - Zend_Loader
Related issues: Attachments:
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?
Posted by Ryan Mauger (bittarman) on 2011-05-23T07:29:44.000+0000
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.
Posted by Stuart Jones (horuskol) on 2011-05-23T23:51:44.000+0000
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.
Have you found an issue?
See the Overview section for more details.