Op Sunday 17 May 2009 17:06:40 schreef dmitrybelyakov:
> Hello,
>
> This is a really basic question, so I just want to figure out the best way
> to do it.
> Lets assume we have a Module that has a Model and a Database Mapper for
> that model.
> We now want to access this model from other parts of our application like
> Front Controller Plugin.
> So what would be the best (the correct) way to do this?
>
> Are we supposed to add Module's path to include_path?
> Or is it ok to call include_once twice (for both the Model and the Mapper)?
>
> Just can't find any information on what is the best practice with ZF.
>
> Thank you.
> Dmitry
Hi Dmitry,
You should search for the term module bootstrapping on this list. Create a
Bootstrap class for each module in your module folder and autoloading will be
ready. There's no need for including the files manually.
R, Jurian
--
Jurian Sluiman
Soflomo.com