On Aug 17, 2006, at 3:22 PM, [EMAIL PROTECTED] wrote:

>
> so i have a 1st model and controller for Files and 2th / controller  
> and
> model for Comments,
> my question is - Can I use findAll() for Comments in files  
> Controller ?

stick in

var $uses = array('File', 'Comment');

In your controller. Then you'll be able to see $this->Comment and  
$this->File inside the controller.

If the two models are associated (via hasMany, belongsTo, etc), you  
can access one from the other:

$this->File->Comment->find();

And so on.

Happy Baking,

John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to