Thank you guys for the precious information you shared with me. Reading the link euromark posted, I found a lot of similarities with our controller implementation: first of all we call a function validateInput (we are better off changing its name to something more compatible with cakephp use of validate) to parse input data (GET, POST or PUT) and make sure that some fields are in there and others not; then we call allowRequest which guarantees us that the current request could be accepted by the engine (it is coming from a trusted application and if tries to view/edit private data, it checks if the owner of that information is the one requesting it); it calls models method to save/edit/read records from the database; finally (we should think of a better way to implement this in order to not to break the MVC paradigm) data fetched from the model is reformatted (calling Model specific methods) so that json and xml views can easily convert them to json and xml objects.
Cheers, Matteo -- http://www.matteolandi.net/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
