Or you can use ClassRegistry::init('ServerInfo')->find('all');
Thanks and Regards,
Divya Banik
On Sun, Sep 26, 2010 at 12:57 AM, emmexx <[email protected]> wrote:
>
>
> On 25 Set, 03:24, Ancy DSouza <[email protected]> wrote:
>
> > Now I want to populate the data of both the tables in my Members
> controller.
> >
> > Now Members table can be populated in Members controller as below.
> > $table = $this->Member->query("SELECT members.id, members.name,
> > members.email FROM members");
> >
>
> $this->loadModel('ServerInfo');
> $server = $this->ServerInfo->find('all');
>
> bye
> maxx
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en