Hello to everyone. As I'm learning the Zend Framework system, I ran across an
article by Matthew Weier O'Phinney that said that modules can be loaded
individually as well as have their own configuration files. There were
several examples provided that offered code to implement this feature. I
choose to go with the one by Chris Woodford
(*www.offshootinc.com/blog/2011/02/11/modul-bootstrapping-in-zend-framework*).
It didn't work for me however. 

Maybe someone can give me a hint as to why it didn't work.  I'm going to do
my best in explaining what I did according to the article's setup by giving
a short to the point version. 

1. I added class "Offshoot_Application_Module_Bootstrap" by setting up
folders in my library *"Offshoot/Application/Module/Bootstrap.php"* and in
application.ini (autoloaderNamespaces[]=*"Offshoot_Application_Module"*).

2. I added front controller plugin "Offshoot_Controller_Plugin_ActiveModule"
by setting up folders in my library
*"Offshoot/Controller/Plugin/ActiveModule.php"* and in application.ini
(autoloaderNamespaces[]=*"Offshoot_Controller_Plugin_"*) and also
(resources.frontController.plugins[]=Offshoot_Controller_Plugin_ActiveModule

3. I added abstract class "Offshoot_Application_Module_Initializer" in the
same exact way as #1, but didn't have to do the namespace again. 

>From my understanding, if my module is named Register, all I need to do is
create a class called "Register_Bootstrap_Initializer" /(put that in
module/Register/Bootstrap/Initializer.php) /that extends #3 class, and it
should run all of my  protected function _initFoo{} functions inside.  

As mentioned it doesn't work. But I will say that I haven't gotten any error
though. 

Any suggestions on getting this to work, or should I seek another avenue?
Thanks in advance





--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Calling-Active-Individual-Module-Bootstraps-ZF-1-12-tp4659400.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to