CodeIgniter Forums
Help on Phil Sturgeon’s RESTful API - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Help on Phil Sturgeon’s RESTful API (/showthread.php?tid=44734)



Help on Phil Sturgeon’s RESTful API - El Forum - 08-24-2011

[eluser]Deep Arora[/eluser]
Am having trouble with Phil's REST server, when used with his other HMVC library. The controller shows blank page in browser. Looks like "extends REST_Controller" is causing some problem.
Code:
require APPPATH.'/libraries/REST_Controller.php';
class User_api extends REST_Controller
{
    function user_get()
    {
        echo "1";
        if(!$this->get('id'))
        {
            $this->response(NULL, 400);
        }
    }