News Feed
Sections




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

TechChorus Blog:
Create RESTful Applications Using The Zend Framework - Part II Using HTTP Response
January 26, 2010 @ 09:25:42

Continuing on from his previous article about making RESTful applications with the Zend Framework, Sudeer has posted the second part of the tutorial focusing on the HTTP responses back to the client.

In our last example, we used Zend_Rest_Route and Zend_Rest_Controller to demonstrate how to map requests to controller actions. We also used the response object to send text content in the HTTP response. In this article let us send appropriate HTTP response codes using the response object.

He gives examples for some of the more common HTTP codes like 200, 201 204, 404 and 503. The code you'd use to handle the requests is included as methods to put into your controller for viewing, deleting and a bit of error handling.

0 comments voice your opinion now!
zendframework rest webservice tutorial http response


blog comments powered by Disqus

Similar Posts

PHPWomen.org: Add values to a symfony form in between save() and serialization to the database

NETTUTS.com: Quick Tip: Loop Through Folders with PHP’s Glob()

Lee Davis' Blog: Zend Paginator Example

NETTUTS.com: How to Build a Login System for a Simple Website

Stefan Koopmanshcap's Blog: Installing the Geoip PECL package for Zend Server on OSX


Community Events





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


community framework package series list podcast deployment install library language tips voicesoftheelephpant laravel introduction opinion interview api symfony bugfix release

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