Hi Ananda,

How to call other models in a model? I know that a controller could
use other model.

It depends what you want to do - if the model you want to call is an
associated model (ie. one you have defined in hasOne, belongsTo, etc.)
then Cake creates them automatically for you in the Model. For insance
:

class Post extends AppModel
{
 var $hasOne = 'Author';

 function something() {
   // Here you can access $this->Author
 }
}

Otherwise, follow Tarique's advice.

Anselm


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to