• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Phil Sturgeon’s REST Server library

#1
[eluser]nuclearmaker[/eluser]
i have proble with post using Phil Sturgeon’s REST Server library. but no problem with get request.

i am getting
Code:
{"status":false,"error":"Unknown method."}
any idea folks?

#2
[eluser]Garf Orlock[/eluser]
Hope this helps to fix the error in REST_Controller
Code:
{"status":false,"error":"Unknown method."}


In the file REST_Controller.php, do a search for:

Code:
$controller_method = $object_called.'_'.$this->request->method;

and replace it for:

Code:
$controller_method = $this->router->fetch_class().'_'.$this->request->method;


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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