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
>
>
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
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
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?
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
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_
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
> > 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
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
>
, 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
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 = '
11 matches
Mail list logo