News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

C7Y:
REST and Resource Handling with CakePHP
May 15, 2008 @ 12:04:26

On the C7Y website, a new tutorial has been posted from Nate Abele (following his previous CakePHP-related article) covering the use of the framework to create a REST web service and manage resources inside of it.

We're going to take these concepts [from the previous article] further and add a new one: REST. In the course of this series so far, we've only been discussing how to use the Router to examine and act on different parts of a URL.

He gives a list of possible headers that could come from a client (like Accept-Charset or Content-Type) and how these can be directly pulled in to the CakePHP routing system. A few extra bits of code later and your app can be mapping requests directly to the controllers for the actions the user's requesting. All that's left is to serialize the results back into XML to echo out.

0 comments voice your opinion now!
cakephp tutorial resource rest handle webservice


blog comments powered by Disqus

Similar Posts

Shift8 Blog: Moving from CakePHP to Lithium: Helpers

Matthieu Napoli: Test against the lowest Composer dependencies on Travis

WorkingSoftware.com.au: Configuring PHP4 and PHP5 to run concurrently on FreeBSD

Andi Gutmans: Zend Server 6 is launched and available on the Amazon Web Services (AWS) Marketplace

Zend Developer Zone: Desktop Image Uploaders Using Adobe AIR and JavaScript


Community Events

Don't see your event here?
Let us know!


api library language php7 opinion release list version framework interview security example extension introduction series laravel laravel5 community podcast voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework