I also recently wrote an article on the subject which will be posted
on C7Y soon, so stay tuned for that.
On May 7, 1:24 pm, nate <[EMAIL PROTECTED]> wrote:
> Hi Gustavo, sorry about taking forever to respond.
>
> These two things are each handled at different levels of the
> framework. Routing the REST requests happens like so:
>
> // config/routes.php:
> Router::mapResources("post");
>
> That creates REST routes for the PostsController.
>
> For handling raw PUT or POST input, you can use
> file_get_contents("php://input"); See the example of how the
> RequestHandler accepts XML input in the startup() method for pointers
> on usage.
>
> On Apr 17, 5:23 pm, "Gustavo Carreno" <[EMAIL PROTECTED]> wrote:
>
> > Hey Nate,
>
> > Recently I've been trying to do a Win32 Delphi integration with a
> > CakePHP site that I'm building.
> > I thought that REST would be the best way to go so I began to code
> > some XML responses on SchemaController.
> > But I only got so far as the GET method for retrieving Info. I now
> > need to implement the PUT and DELETE methods.
> > I had a diagonal read on this blog
> > article:http://feeds.feedburner.com/~r/ramsey/~3/242255659andthis PHP manual
> > link:http://www.php.net/manual/en/features.file-upload.put-method.php
> > .
> > These have given me some idea of what lies ahead but I still need some
> > guidance on how CakePHP would handle the PUT and DELETE.
> > Could someone shed a little light on this subject please, nothing too
> > fancy, some links to other blogs, something in the Bakery or the old
> > or new manual, since I really don't want you guys to give it on a
> > platter!!
>
> > Hope you can help!!
>
> > Cheers,
> > Gustavo Carreno
> > ---http://batxman.wordpress.com
> > < If you know Red Hat you know Red Hat,
> > If you know Slackware you know Linux >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---