Hello group, I would like to get some ideas on what is the best way to do the following in CakePHP.
I am developing a little content management app that allows the user to create pages. I want to allow them to add dynamic content to their pages. That dynamic content, let's say a stock market chart, is being generated somewhere else in my app. Since I don't want to allow PHP code on their pages / content creation form, I will probably use some kind of made up tag language, that I can easily filter out and replace with a function inside the app. For example, if they put [CHART_GOOG] in their form, it will be replaced with a chart of the google stock. So when I parse the page, that is stored in the database, and generate the dynamic content, where should this content be generated at. Should I make like a dynamiccontent.php component, and just call it within the pages_controller.php? Should the component actually output the complete html, and then I just put in a var and show it my view? If so, how can I output something to html inside my component? Or maybe I should just do it all within my pages controller? Any ideas and suggestions are appreciated! gregory --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
