Sunday, September 26, 2010

Re: How can I populate data belonging to TWO NON-RELATED TABLES in ONE Controller

Or you can use ClassRegistry::init('ServerInfo')->find('all');

Thanks and Regards,
Divya Banik


On Sun, Sep 26, 2010 at 12:57 AM, emmexx <emmeicsics@gmail.com> wrote:


On 25 Set, 03:24, Ancy DSouza <ancyc...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: