Matthew Weier O’Phinney’s Blog Module Bootstraps in Zend Framework
Matthew Weier O’Phinney has posted a new article on bootstrapping modules:
When it comes to modules, we have three typical problems or requirements:Zend_Application answers the first two questions. By default, it sets up a resource autoloader with targets for all the common resources (models, forms, view helpers and filters, DbTable objects, etc.), and also allows you to specify resources to load at bootstrap time.
- Ensuring that module resources — models, view helpers, etcc. — are available elsewhere in the application
- Initializing module-specific resources, such as routes, navigation elements, etc.
- Running code specific to this module (selecting a specific layout, selecting a specific database adapter, etc)
He then goes on to explain what module bootstraps are used for and how to use front controller plugins to handle initialisation tasks if the module is the one being executed.

