Re: Override behavior method?

2012-06-28 Thread Poyan Nabati
Excellent. Thank you. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr..

Re: Override behavior method?

2012-06-28 Thread Dr. Tarique Sani
It will run the Models fly()-method! Once in a while it is nice to dig into the framework code to find out how it works - having a good IDE helps with this Cheers Tarique On Thu, Jun 28, 2012 at 12:39 PM, Poyan Nabati wrote: > From the manual: > > Behavior methods are automatically available o

Override behavior method?

2012-06-28 Thread Poyan Nabati
>From the manual: Behavior methods are automatically available on any model acting as the behavior. For example if you had: Duck->fly('toronto', 'montreal'); What happens if Duck already has a method fly()? Do you - get an error? - run the Models fly()-method? - run the Behaviors