Tuesday, March 20, 2012

Re: How to find data from another model

just

$this->Detail = ClassRegistry::init('Detail');
$this->Detail->find();

without any App::uses statement


Am Dienstag, 20. März 2012 16:40:53 UTC+1 schrieb heohni:
Hi,

within my contacts controller I would like to select some data from my model 'details'

I added App::uses('Detail', 'Model'); to make it available and I can access some needed functions, but what I need is to do a 

$this->find()... on the details model.

How exactly can I do this? How is the syntax looking?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: