Thanks, I had taken a look into it and it should be generally what I
am looking for. Will bring my discussion to that post!

On Feb 7, 8:32 pm, "Ryan" <[EMAIL PROTECTED]> wrote:
> Try Felix's getModel function:http://www.thinkingphp.org/2007/01/22/
> how-to-properly-create-a-model-instance-manually/
>
> It will allow you to load models dynamically so you can trim your
> $uses array.
>
> Regards,
> Ryan Rosehttp://www.digiwize.com
>
> On Feb 6, 11:15 pm, "redhex" <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > I have a habit of doing a debug($this) to view the different variables
> > that is accessible to my controller's method. What I notice is that
> > whatever my controller have in the $uses array is loaded into memory
> > (the different models and their variables).
>
> > The question is how can I limit the memory consumption of my
> > controllers? I do not use all the models in the $uses array in all my
> > methods all the time. And I had at times experience failure in the
> > scripting exhasting the avaliable 8MB of memory as defined in PHP.ini
>
> > Is it safe to unset those varaibles (aka model) that the method is not
> > using? Is there anyway to define the $uses array dynamically on the
> > fly? Currently I am at 1.1.11.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to