On Thu, 08 Jun 2006 04:15:09 -0700
"100rk" <[EMAIL PROTECTED]> wrote:

> Way I'm using already in environment with many db tables is through
> plugins - their models are loaded only when some controller of this
> plugin is dispatched.

My app will also be divided in plugins. The problem is that most of the
models have to be shared among them so that's not really a solution for me.

> >Perhaps only the models used by the requested controller
> ...and all models in their associations...

Those too.

Maybe the strategy would be to use loadModel() to load required models
on-demand. Controller referenced models would be loaded on controller
creation and dependent models would be loaded on when building model
associations.


-- 
Gonçalo Marrafa <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to