![]() |
Phil Sturgeon’s REST Server library - 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: Phil Sturgeon’s REST Server library (/showthread.php?tid=47177) |
Phil Sturgeon’s REST Server library - El Forum - 11-28-2011 [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."} Phil Sturgeon’s REST Server library - El Forum - 06-27-2012 [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; |