Try http://www.thinkingphp.org/2006/09/14/dessert-1-the-7-crucials-of-crud/
On Jun 19, 9:49 am, Gaurav <[EMAIL PROTECTED]> wrote: > Hi, I am new to Cake and to PHP as well. I haev a question about > reuiresPost() method which supposedly takes list of actions which can > only be triggered by a POST request. The way Cake bakes the code it > uses same edit and add methods to do 2 things: > > 1.) present form to user to add or edit (if form data is null) > usinghttp://yourhost:/blah/edit/1 GET request > 2.) It also adds or edits the users when form of posted > usinghttp://yourhost:/blah/edit/1 POST request > > So If I use RequiresPost (edit) then my Get reuest would not go > through as action is still the same. Obvioulsy I can define my first > detp in separate action but what is the norm generally since I like to > use clean URIs. > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
