hi pleas help me to find model name :
class Learning extends AppModel{
var $name = 'Learning';
var $belongsTo = array(
'Cat' => array(
'className' => 'Cat',
'counterCache' =>'entry_count',
)
);
}
************************************************
class Cat extends AppModel{
var $name = 'Cat';
var $actsAs = array( 'MyTree' ) ;
}
************************************************
class MyTreeBehavior extends ModelBehavior {
function setup(&$Model, $config = array()) {
===> how to get name of model parent Cat
(Learning) ?????????????
}
}
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 [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
To unsubscribe from this group, send email to
cake-php+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.