
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Op Monday 04 May 2009 15:05:00 schreef Matthew Weier O'Phinney:
> -- Jurian Sluiman <
subscribe@...> wrote
>
> (on Monday, 04 May 2009, 02:20 PM +0200):
> > I have read some autoloading articles here, but all examples are with no
> > or one module. My application has this structure (almost everything is
> > inside a module):
> >
> >
> > /application
> > /configs
> > /layouts
> > /modules
> > /default
> > /admin
> > /blog
> > /calendar
> >
> >
> > I have read this thread:
> > http://www.nabble.com/Autoloading-module-resources-
> > with-1.8-Preview-td22956945.html. It does not end with a conclusion and
> > the documentation is not clear about the Zend_Application_Module_Loader.
> >
> > How can I autoload all my modules? I can create for each module an
> > autoloader by scanning the application/modules directory. The thread
> > mentioned above has another approach: each module contains its own
> > bootstrap with config. Are there any advices about this rather new
> > subject (the manual seems even unfinished)?
>
> In each module, create a bootstrap that extends
> Zend_Application_Module_Bootstrap, with the class name
> <Modulename>_Bootstrap. That will setup an autoloader using
> Zend_Application_Module_Autoloader for that module which follows the
> recommended directory structure guidelines.
>
> If you need additional configuration per-module, then you're all setup
> to do so; otherwise, that's all you need.
Thanks for your quick answer. I added in each module directory a Bootstrap.php. E.g. in application/modules/blog/Bootstrap.php i have a Blog_Bootstrap extending Zend_Application_Module_Bootstrap.
In the global bootstrap I have added the application/module directory as a module directory (I had that already).
Still the AclController (located at application/modules/default/controllers/AclController.php) isn't found. Some controllers are required in the _initFrontController() method of the global bootstrap class. Do I miss something?
Regards, Jurian