Re: Loading many Model in a Cakephp controller

2008-04-11 Thread Marcelius
Thanks, got the point :-) On 11 apr, 13:08, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > Question: When would one deside to use ClassRegistry::init instead of > > App:Import and new() ? Wouldn't that be more memory efficient? > > ClassRegistry::init() would store a reference, so it can b

Re: Loading many Model in a Cakephp controller

2008-04-11 Thread Dardo Sordi Bogado
> Question: When would one deside to use ClassRegistry::init instead of > App:Import and new() ? Wouldn't that be more memory efficient? ClassRegistry::init() would store a reference, so it can be reused later and use App::import() internally. Use it if you plan reuse the instance in other plac

Re: Loading many Model in a Cakephp controller

2008-04-10 Thread Marcelius
Question: When would one deside to use ClassRegistry::init instead of App:Import and new() ? Wouldn't that be more memory efficient? On 11 apr, 01:59, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > I was wondering if it is possible to load models inside a controller > > in the similar way

Re: Loading many Model in a Cakephp controller

2008-04-10 Thread Dardo Sordi Bogado
> I was wondering if it is possible to load models inside a controller > in the similar way as codeigniter does, and if there is a way, how to > do it Yes, Well if you want to use more than one model in the same controller, just tell cake so: class FoosController extends AppController { var

Loading many Model in a Cakephp controller

2008-04-10 Thread Garf
I was wondering if it is possible to load models inside a controller in the similar way as codeigniter does, and if there is a way, how to do it It would be something like this class Blog_controller extends Controller { function blog() { $this->load->model('users_model',