Take a look at Router::mapResources
On Nov 11, 11:37 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > I saw the following > athttp://www.xml.com/pub/a/2007/01/24/whats-new-in-prototype-15.html > > --- > > The standard XMLHttpRequest object at the heart of Ajax functionality > only allows HTTP GET and POST methods, but RESTfully-designed web > applications often call for the lesser-used methods, like PUT and > DELETE. Until browsers support the full range of HTTP methods, > Prototype offers a compromise: "tunneling" those methods over POST, by > including a _method query parameter with the request. You can now > specify the intended HTTP method with the method option on all Ajax > functions (the default is POST). Methods other than GET or POST will > actually be requested with POST, but will have a _method query > parameter appended to the request URL. For example: > > // Creates a POST request to /feeds/1.rss?_method=PUT > new Ajax.Request('/feeds/1.rss', { method:'put', postBody:myXML, > contentType:'application/rss+xml' }); > > Of course, the server side of the application must be written to > understand this convention as well, but if you use Rails, you'll get > the behavior for free. > > --- > > Then I saw this athttp://prototypejs.org/api/ajax/options > > As a Ruby On Rails special, Prototype also reacts to other verbs (such > as 'put' and 'delete' by actually using 'post' and putting an extra > '_method' parameter with the originally requested method in there. > > --- > > I was wondering if, like Rails, CakePHP had this feature? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
