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
Posted by Rob on 5th January 2010 under Around the web | 1 Comment »