you could try making a base component for all your advertisements.

components are to controllers as helpers are to views.

On Apr 17, 9:19 pm, laptop <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can anyone tell me what is the best way to go about implementing a
> base model class and then a type of that model. For example I have a
> base "Advertisement" and then I will have PrintAdvertisement,
> OnlineAdvertisement.
>
> Each sub type will have its own specific fields and some types should
> be able to overload functionality of a basic advertisements.
>
> In the past I have created an Advertisement class and then extended it
> to PrintAdvertisement etc (putting all the possible fields into one
> table).
>
> I guess my question is to how to go about this in CakePHP...
>
> - Should I have a base table and separate the specific types into
> seperate tables and use a hasOne association???
>
> Any help would be appreciated..?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to