Hello, I'm putting together a project that has a list of product categories on the top of several pages. The categories are stored in the database (model ProductType). Now I'm thinking the best way to do this is to make the part that displays the HTML a element view and then figure out how to use a component to feed data to that element for display. Is this the best way to do this or is there another way that this is commonly done?
The reason I want to do it this way is that a user might be on different section (say the contact page using the ContactController which really would have nothing to do with the ProductType, just seems cleaner if I could have all that functionatity packed away inside a component instead of repeating similar code on several controller classes. Thanks, Zoltan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
