Our application has finally reached a point where we are designing the final UI. Up until now we've kept to the cake standard, where all actions have their own HTML view, with minimal javascript (only for required functionality). This of course lends itself to a lot of page reloading and changing URLs, which we want to minimize in the final UI.
However, after spending a couple of days laying out and implementing one page using Ajax (so one screen covers the functionality of perhaps 8 cake actions), I found that not only did I have to change the view files to support Ajax calls, but also the way the controller actions returned data. Session flash() and redirect is fine for "normal" html, but for Ajax, not so much... Since I've previously developed web applications using Flash / AMFPHP, this is also a possible UI. However, again it needs controllers actions to be modified, as every action now needs to return appropriate data (no rendering, session flashing, or redirecting). Now, rather than describe what I have implemented for this, I am looking to hear what others have done in this situation. I don't want to taint your voices with my opinion, yet :P Surely there are a number of applications that have both a "plain HTML" and Ajax enabled version? Or you have a Flash frontend, but want to keep a simple HTML admin interface (to the same actions). For the purposes of discussion, imagine that the four ways to call an action are: Plain HTML (expects session flash, rendered page, redirect) Ajax Updater (expects a rendered page, optional JSON header) Ajax JSON request (expects a JSON data result) Flash via CakeAMFPHP (expects returned array) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
