I seem to be having a tough time getting my Zend_Application_Module_Bootstrap
based scripts to run. I'm using the following app structure:


http://www.nabble.com/file/p23326297/app_structure.png 

http://www.nabble.com/file/p23326297/app.zip Download Source Code 

In my application/configuration/application.ini:


[production]
; GENERAL
phpsettings.date.timezone = "America/Los_Angeles"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
; BOOTSTRAP
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
; MODULES
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules.default =  ""
resources.modules.services = ""

[staging : production]

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1



In my application/Bootstrap.php:

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    public function run()
    {
        $this->bootstrap('frontController');
        $this->bootstrap('modules');
        $this->frontController->dispatch();
    }
}



In my application/modules/default/Bootstrap.php:

class Default_Bootstrap extends Zend_Application_Module_Bootstrap
{  
    public function run()
    {
        echo "Default Bootstrap!
";
    }
}



And in my application/modules/services/Bootstrap.php:

class Services_Bootstrap extends Zend_Application_Module_Bootstrap
{  
    public function run()
    {
        echo "Services Bootstrap!
";
    }
}



So I essentially have module bootstrap stubs in place. I was expecting them
to simply echo a string so I can verify that they are being loaded and run,
but I never see the string. The app runs fine. The views load for the
default and test actions in both my Default and Services modules. However I
never see those module bootstrap strings echoed in the output.

I'm still trying to wrap my head around this new Zend_Application stuff so
any guidance folks could offer would be much appreciated.


Thanks


larry



-- 
View this message in context: 
http://www.nabble.com/Can%27t-seem-to-load-module-boostraps-in-ZF-1.8-tp23326297p23326297.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to