Re: Model used by all controller

2007-10-30 Thread cakeFreak
If you put --- $uses = array( "myglobalmodel"); --- in your AppController, the you can use --- $this->myglobalmodel->BLABLABLA --- in a

Re: Model used by all controller

2007-10-30 Thread Tulio Faria
You could create a component to do this... Inside the controller you load your models using loadModel function. []'s On 30 out, 09:48, Cristian Vrabie <[EMAIL PROTECTED]> wrote: > Hey guys, > I'm in a sittuation where I need all my controllers to use a global > model + their specific models. My

Model used by all controller

2007-10-30 Thread Cristian Vrabie
Hey guys, I'm in a sittuation where I need all my controllers to use a global model + their specific models. My ideea is to add in the AppControler class the $uses = array( "myglobalmodel"); but then i don't know if this will stack with the default controller of every module (for example if i