-- Karol Grecki <[EMAIL PROTECTED]> wrote
(on Tuesday, 11 November 2008, 09:08 AM -0800):
> How about a controller plugin that dynamically adds model directory to the
> include path for a current module? That's something trivial to do.

The problems of using the include_path remain: it grows, making file
resolution slower, and it makes it more difficult to namespace models
with a common module prefix.


> 
> Christopher Östlund wrote:
> > 
> > Heya,
> > 
> > I would love to know the recommended way to load models inside modules
> > too.
> > You don't want to add the model path of each module to the include path.
> > 
> > On Tue, Nov 11, 2008 at 2:39 PM, keith Pope
> > <[EMAIL PROTECTED]>wrote:
> > 
> >> Hi,
> >>
> >> I am just wondering what the recommended way to load models is.
> >>
> >> 1) Add model directories to the path and use Zend_Loader
> >> 2) Use the Plugin Loader
> >>
> >> I ask as there has been discussion on speed and the differences
> >> between ZL and PL, I was wondering what the most efficient out of the
> >> two.
> >>
> >> Thx
> >>
> >> Keith
> >>
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Loading-Models-best-practice-tp20439729p20443895.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to