Sorry if this is a supid question. If I put functions in models is it
possible for those to interact with other models? For example:
<?
class User extends AppModel {
var $name = 'User';
var $hasMany = array('House', 'Car');
function networth() {
$houses = $this->House->findAll();
$cars = $this->Car->findAll();
return _total($cars) + _total($houses);
}
}
?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---