News Feed
Sections




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

Jan Lehnardt's Blog:
REST Controller for PHP Applications
December 24, 2007 @ 10:11:00

Jan Lehnardt has been working up a REST controller for a PHP application he's been developing and has posted a minimalistic structure for one he's worked up.

One of the projects involves very little code and I do not want to use a full fledged framework there. Another one is using Code Igniter which does not handle REST by default (as far as I can tell). So I wrote a minimal REST application controller that easy to integrate and very flexible.

His example makes a base class that is extended by each of the controllers needing REST functionality. It includes methods for dispatching, error handling, responding and passing the call to the right handler.

0 comments voice your opinion now!
rest controller application example rest controller application example


blog comments powered by Disqus

Similar Posts

Job Posting: Amvona.com Seeks Web Application Developer (Mansfield, MA)

IBM developerWorks: Understanding the Zend Framework, Part 2 (MVC & a Database)

CodingThis.com Blog: Quick XML-to-HTML Templating in PHP Using SimpleXML

Lorna Mitchell's Blog: 3 Ways to Access a Namespaced PHP Class

Jorge Garifuna\'s Blog: Build a Complete PHP Application in 3 Clicks


Community Events





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


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

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