Well, the behaviour of a form is: 1. Display to user - populated with any existing data 2. Submit to some processor 3. If there is any submission error, display the form again with appropriate error messages 4. If there is no submission error, display/redirect to success page.
Of course, more complex forms may be over a number of pages, but this is the gist of it. Now if you do all of this in Cake, using the html/ form helper for your fields, then the prepopulation and displaying of error messages is very easy. However, with your "bootstrapping into Cake" method, you will have to handle an amount of this manually. Do you bootstrap into Cake's models to get the original data? Do you bootstrap into Cake's Helpers to create the form elements? When you submit, how does your processor know what validation rules to apply? How does it get the validation errors back to the original form? Basically, I really can't see how this could be made easier than just using Cake for the whole lot. If the only thing stopping you is that your designers want to work in Dreamweaver laying out form elements manually, then perhaps you should look at some kind of server side preprocessor - which takes the "Dreamweaver form", and replaces the form elements with appropriate Form Helper chunks (which handles prepopulation and error messages). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
