REST example for Code Igniter
August 26, 2011 in php
On the same wave of my previous post I’m doing the same example using a REST client/server using Phil Sturgeon‘s REST libraries.
I made a fork of the current CI2 source code on bitbucket and I installed the spark library (required by Phil’s libs) REFERENCE
Then I wrote two controllers: rest_server.php and rest_client.php. In the former might be considered interesting the method __getMyMethods().