The module bootstraps will not be executed unless the Modules bootstrap
resource plugin is enabled. Since (I guess) you're using Zend_Tool now, just
add the line 'resources.modules = 1' in application.ini. If you aren't using
a config, there are a couple of ways (that I know of) to enable it:

1. Via options passed to the Zend_Application constructor:

    // project/public/index.php
    $app = new Zend_Application($env, array(
        'resources' => array(
            'modules' => array(),
            // other resource plugins
        ));

2. Via the $_pluginResources property of the application bootstrap:

    // project/application/Bootstrap.php
    class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
    {
        protected $_pluginResources = array(
            'modules' => array()
        );
    }

About the workshop controller problem, that's probably a rewrite issue or a
wrong base url setting.

   -- Mon


On Thu, May 7, 2009 at 3:59 PM, Vadim Gabriel <[email protected]> wrote:

> I was struggling with this, This entire morning with no luck at trying to
> figure out how to setup a moduler structure and using zend_application and
> bootstrapping. I have gone to a point where he scans the modules directory,
> Does not load the bootstrap files located under each module directory root
> and has the {modulename}_Bootstrap class name, It then tries to load the
> controller named 'workshop' under the url 
> http://localhost/workshop/publicwhich is clearly something it shouldn't do. 
> And it does that until i add
> 'useDefaultControllerAlways' to the config file under the FrontController
> resource. This is becoming very hard to understand as time goes by and the
> ZF project grows bigger. I couldn't find any (good understanable organized)
> documentation regarding this approach. If anyone tried anything like this or
> has something to share, Please do. It's getting very agneying task to try
> and create an application (with modules) using ZF b/c of the lack of
> documentation for these issues.
>
> Thanks.
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
> Zend Framework Certified Engineer.
> -- http://www.vadimg.co.il/
>
>
>
>

Reply via email to