News Feed
Sections




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

Joseph Crawford's Blog:
ZF Creating RESTful Applications
March 10, 2010 @ 08:50:25

Joseph Crawford has a new post to his blog today with a look at his use of the Zend_Rest_Controller and Zend_Rest_Route components of the Zend Framework to create a simple REST service.

You might be asking yourself why do I have to use both components, why is it not rolled into one nice component. The answer is really basic and if you look at the source code for the Zend_Rest_Controller you will see that it is solely an abstract class that defines the methods required for use with the Zend_Rest_Route.

He includes the code to add to your bootstrap file to get the routing working and a sample controller (MyController) that extends the Zend_Rest_Controller and sets up some basic actions - get, put, post and delete. He does mention one issue he's coming across in a feature he's wanting to add - putting the version number of the API in the URL for easier separation.

0 comments voice your opinion now!
rest application tutorial zendframework


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: PHP Built in Input filtering

Zend Developer Zone: Zend Framework - The Big Q&A

Padraic Brady's Blog: Zend Framework: Surviving The Deep End Book - Chapters 8 and 9 Published

PHPRiot.com: Zend Framework 101: Zend_Registry

Sameer Borate's Blog: Grabbing website Favicons using curl and php


Community Events





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


install series language laravel symfony library update package unittest zendserver tips podcast api framework deployment community opinion interview introduction release

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