Hi, I am developing an application to content manage a group of food menus - Breakfast, Lunch, Dinner, Wine
Each menu is divided into Groups - Sandwiches, Soup, Dessert, etc. Each Group has a number of Dishes - Ham Sandwich, Cheese Sandwich. When viewing a menu, the controller will read these recursively and the view will show Groups & Dishes for that. Now "Dishes" in our Wine menu have extra "columns", price per 1/2 bottle, tasting notes, etc. as well as the same information as our normal dishes. I would like to use the same controller to read & write the Wine menu and normal menus, so I my thinking is to "decorate" my MenuDish model with a WineDrink one rather than extend it - my WineDrink model belongs to my MenuDish and MenuDish hasOne I would also like to use the same view to display MenuDishes and WineDrinks - would the best way be to conditionally use an element? I am a little stuck as to the best way to approach this without writing a lot of duplicated functionality in my code and how to do the decoration, particularly when saving a new MenuDish / WineDrink item. Does anyone have any recommendations or thoughts. Thanks Ski --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
