Re: Functions in models

2008-01-25 Thread powtac
http://groups.google.com/group/cake-php/browse_frm/thread/4d8e4e0d5f33e5bb/4845ef32ed9c304d?lnk=gst&q=models+in+other+models http://groups.google.com/group/cake-php/browse_frm/thread/20d47ead223f4df7/c468e97fa443ecc9?lnk=gst&q=models+in+other+models http://groups.google.com/group/cake-php/browse_f

Re: Functions in models

2008-01-25 Thread AD7six
On Jan 25, 9:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 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 = &#

Functions in models

2008-01-25 Thread [EMAIL PROTECTED]
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: House->findAll(); $cars = $this->Car->findAll(); return _total($cars) + _tota