Re: Components, Controllers y Elements

2007-10-21 Thread laeffe
Hi, first of I think it's correct to talk about models since models are an abstraction for the tables. Second i think you can use loadModel() to get access to a model that's not in the uses variabel, but you will have to instantiate the object your self, $model = new Model(); Ps. Can anyone plz

Re: Components, Controllers y Elements

2007-10-20 Thread Wayne Fay
To make that concrete... class UsersController extends AppController { var $uses = array('Muppet', 'Fraggle', 'Smurf'); } This is covered in the Cake manual too: http://manual.cakephp.org/chapter/controllers Wayne On 10/20/07, the_woodsman <[EMAIL PROTECTED]> wrote: > > I can at least help w

Re: Components, Controllers y Elements

2007-10-20 Thread the_woodsman
I can at least help with b) Controllers can have access to many, unrelated models, by having more than one item in the uses array. Good luck with the other stuff! On Oct 19, 2:07 pm, Pinholecam <[EMAIL PROTECTED]> wrote: > I've been looking for some answers to my problems but after a couple

Components, Controllers y Elements

2007-10-19 Thread Pinholecam
I've been looking for some answers to my problems but after a couple of hours of searching, I'll answer that. a) I would need to query differents models form a component. How to do it? b) Looking at the manual it seems that each model has one controller and one controller has one model. In