You should also add

    resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"

in your application.ini. I believe it's not specified by Zend_Tool by
default.

   -- Mon


On Wed, May 6, 2009 at 10:02 PM, Jurian Sluiman
<subscr...@juriansluiman.nl>wrote:

> Op Wednesday 06 May 2009 14:57:00 schreef Vadim Gabriel:
>
> > Hey,
> >
> > Are there any tutorials/guides out there that show examples on ways to
> > bootstrap an application using more then one module? I mean if i have a
> > directory structure like this:
> >
> > -library
> > ---Zend
> > -public
> > ---admin
> > -----default
> > -----other
> > ---site
> > -----default
> > -----other
> > ---index.php
> > -application
> > ---configs
> > -----application.ini
> > ---modules
> > -----admin
> > -------controllers
> > -------layouts
> > ---------scripts
> > -----------default
> > -----------other
> > -------views
> > ---------scripts
> > -----------default
> > -----------other
> > ---------helpers
> > -----site
> > -------controllers
> > -------layouts
> > ---------scripts
> > -----------default
> > -----------other
> > -------views
> > ---------scripts
> > -----------default
> > -----------other
> > ---------helpers
> >
> > Basically i am looking for creating a modeler structure application using
> > ZF 1.8, Is there anything blogged about it?
> >
> > Thanks.
>
>
> Hi Vadim,
> I have looked into this problem as well. It isn't mentioned in the manual,
> but it's very simple. You should add a Bootstrap.php in each module root
> containing the class {ModuleName}_Bootstrap, e.g. Admin_Bootstrap, and
> extending it from Zend_Application_Module_Bootstrap.
> Now make sure you initialise the modules resource in the global bootstrap
> class by adding this to your application.ini (if you pass a Zend_Config
> object when creating the Zend_Application instance):
> resources.modules[] =
>
>
> Now you should have a proper modular design with autoloading the modules
> using the conventional structure.
>
>
> Regards, Jurian
>

Reply via email to