Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Padraic Brady's Blog:
Self-Contained Reusable Zend Framework Modules With Standardised Configurators
Sep 14, 2009 @ 08:58:45

In this new post on Padraic Brady's blog, he looks at a technique for building self-contained Zend Framework modules (dropped in anywhere, a tidy package of everything needed) that would all have a standardized configuration method.

If you are familiar with Zend Framework, you likely understand the concept of a Module in some detail. A Module is, in theory, a reusable collection of controllers, views and other classes which is packaged in its own directory for simpler copying or seperate treatment in a version control system like git or subversion.

The "resuable" part was stumping him until he figured out a way, using the Zend_Application component and a few add-on classes, plugins and configuration instances to create a proof of concept for making a simple module.

tagged: zendframework module contain configuration

Link: