Module autoloader in ZF
- by ChrisRamakers
The manual on Zend_Application_Module_Autoloader states the following:
When using module bootstraps with Zend_Application, an instance of Zend_Application_Module_Autoloader will be created by default for each discrete module, allowing you to autoload module resources.
Source: http://framework.zend.com/manual/zh/zend.loader.autoloader-resource.html#zend.loader.autoloader-resource.module
This requires me to create an empty bootstrap class for each of my modules or else resource autoloading per module won't work with the build-in autoloader.
Now I have two questions
What is a discrete module?
Is there a way to have this resource autoloader registered by default for each module without the need to create a bootstrap file for each module? I want it available in each module and creating so many empty bootstrap classes is something i'd rather prevent.