• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help on Phil Sturgeon’s RESTful API

#1
[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);
        }
    }


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.