Or if the models are associated, just daisy chain the finds:

$results = $this->Contact->Detail->find();

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 20 Mar 2012, at 16:33:51, euromark wrote:

> 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+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to