Hi Gonçalo,

I've looked at the code and I think I can confirm this behavior, of all Model files being included, so I kind of support
this request. But may I ask what the heck you are working on?? 200 Models? That sounds just straight out crazy,
not even big systems like drupal/typo3/mamob/etc. do have that many tables. I can hardly see why anybody would
use more then ~70 tables in a project (and that's kinda big already). But maybe I've just never seen a project as big,
so sorry for my curiosity  ... ; ).

Felix Geisendörfer aka the_undefined


Gonçalo Marrafa schrieb:
Hi.

Is there a way of not loading all models automatically at the bootstrap?

As far as i can tell by looking at the code, all models are automatically
loaded in the bootstrap process. I can see the advantages of this, since
we don't have to care about loading them ourselves.

The thing is that in the app i'm building i will have over 200 models! At
each page request i will use half-a-dozen at most and, nevertheless, all
200 will be loaded!

Perhaps only the models used by the requested controller should be loaded
no? Is there something i'm missing?

Thanks in advance.

  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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