Re: Big problem with using Model 1.3

2011-02-16 Thread Jeremy Burns | Class Outfit
This still feels very wrong. I think you need to simplify. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 17 Feb 2011, at 06:01, damia...@gmail.com wrote: > It work. I check directly url to function and returned data. I want > display resault by helper > >

Re: Big problem with using Model 1.3

2011-02-16 Thread Jeremy Burns | Class Outfit
Yes, you can do a find in models that are linked by association. So your example $this->Model1->Model2->Model3->find() is valid. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 17 Feb 2011, at 06:01, damia...@gmail.com wrote: > It work. I check directly url

Re: Big problem with using Model 1.3

2011-02-16 Thread damia...@gmail.com
It work. I check directly url to function and returned data. I want display resault by helper function getGroupsList(){ App::import('Controller', 'groups'); $group = new GroupsController(); return $group->groupList(); } In view: getUsersList();?> I think that is pr

Re: Big problem with using Model 1.3

2011-02-16 Thread Jeremy Burns | Class Outfit
That is really complicated and probably unnecessary code. You shouldn't be importing models into a view - a view is just there to render the output of a controller function. Why can't you gather this data in your controller and just pass it as a variable? Where is your getGroupsList function?

Re: Big problem with using Model 1.3

2011-02-16 Thread damia...@gmail.com
It work. I check directly url to function and returned data. I want display resault by helper function getGroupsList(){ App::import('Controller', 'groups'); $group = new GroupsController(); return $group->groupList(); } In view: getUsersList();?> App::import('Model

RE: Big problem with using Model 1.3

2011-02-16 Thread Krissy Masters
oglegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of damia...@gmail.com Sent: Thursday, February 17, 2011 12:12 AM To: CakePHP Subject: Re: Big problem with using Model 1.3 I change names but my problem don't solved. Undefined property: GroupsController::$Group [APP/controllers/ groups_

Re: Big problem with using Model 1.3

2011-02-16 Thread Jeremy Burns | Class Outfit
lass GroupsController extends AppController { >> >> Models are singular >> class Group extends AppModel { >> >> K >> >> -Original Message- >> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf >> >> Of damia...@gmail

Re: Big problem with using Model 1.3

2011-02-16 Thread dario gaston musante
> > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf > > > Of damia...@gmail.com > > Sent: Wednesday, February 16, 2011 11:17 PM > > To: CakePHP > > Subject: Big problem with using Model 1.3 > > > Hi everyone. > > I

Re: Big problem with using Model 1.3

2011-02-16 Thread damia...@gmail.com
Controller { > > Models are singular > class Group extends AppModel { > > K > > -Original Message- > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf > > Of damia...@gmail.com > Sent: Wednesday, February 16, 2011 11:17 PM >

RE: Big problem with using Model 1.3

2011-02-16 Thread Krissy Masters
, February 16, 2011 11:17 PM To: CakePHP Subject: Big problem with using Model 1.3 Hi everyone. I have a big problem. I create model and controller: class GroupController extends AppController { var $name = 'Group'; var $uses = array('Groups'); var $components = ar

Big problem with using Model 1.3

2011-02-16 Thread damia...@gmail.com
Hi everyone. I have a big problem. I create model and controller: class GroupController extends AppController { var $name = 'Group'; var $uses = array('Groups'); var $components = array('Session', 'Auth'); class Groups extends AppModel { var $name = 'Groups'; var $useTable = '