I have an CMS application that has multiple 'modules' that can be used
on each 'page'. These 'modules' seem to naturally extend each other.
A sample hierarchy of modules is below:
Item
--> Article
--> Content
--> Announcement
--> Event
--> File
--> Document
--> Image
--> Audio
So, in my item controller, I can define common things, like 'title'.
Then the article controller extends 'item' by adding 'title' and
'body'. Then the event controller extends 'article' by adding
'start_date', 'end_date', 'location', etc.
Just because of OO design, each extended controller takes longer to
process because of having to go up the chain. I don't know how much
overhead this really is, though.
It seems to work fairly well: I only have to change things in one
place. I'm wondering though, is there a way to get the parent's views
such that I only have to have a view in one place, such as 'article'
instead of duplicating views for content, announcement and event?
Is there a more defined way to do what I am attempting?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---