Module autoloader in ZF
Posted
by ChrisRamakers
on Stack Overflow
See other posts from Stack Overflow
or by ChrisRamakers
Published on 2010-05-10T22:49:13Z
Indexed on
2010/05/10
23:44 UTC
Read the original article
Hit count: 438
zend-framework
|autoload
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.
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.
© Stack Overflow or respective owner