He has is now following up with a series of blog posts on aspects of Zend Framework. The first one, Bootstrapping Zend Framework Applications is up and well worth reading.
Archive for January, 2010
Juozas has posted a great article about tips and tricks to consider when developing Zend Framework applications.
He divides his tips into five main areas:
- Separate logic
- Use form values, not request
- Do not rely or use exit()/die()
- Use a framework, not PHP
Everyone should read it!
BinaryKitten has posted an article on how do module specific bootstrapping within a module’s bootstrap class:
The Concept I wanted to achieve was to have unique Configuration based upon the module that was active. The Issue with this is that the Bootstrap files and the _init functions for ALL modules are called with no bias as to which module is active. Thus if you created a 3 modules wanted to make menu alterations in one, those alterations will be applied to all. I also wanted to have a a system where if i added extra modules i could just add extra functions to the bootstrap file and it would work in a similar way.
She then goes on to post a solution using a front controller plugin that calls back into the currently active module’s bootstrap to execute methods that start with _activeInit.
Go have a read! It’s a nice, extensible solution to the problem