Welcome Guest, Not a member yet? Register   Sign In
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;




Theme © iAndrew 2016 - Forum software by © MyBB