Well, don't take "composite over inheritance" too serious. There are times where inheritance is the best way, no doubt.

On 10/20/06, Sonic Baker <[EMAIL PROTECTED]> wrote:


On 10/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:

> 2. Make an intermediate model; inherit this from AppModel and Inherit the
> two models from this.

that was the first thing i thought about too.  and i think it's the
cleanest, best, most-OO way ;-)

Hi Deiter,

Thanks for your advice. I was reading some articles that favoured Composition over Inheritance but I agree the inheritance in probably the cleanest.

Cheers again for your input,

Sonic









--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to