Introducing...REST! |
[eluser]jeffpeck[/eluser]
For detect_method, I added: /* * Detect method * * Detect which method (POST, PUT, GET, DELETE) is being used */ private function _detect_method() { if ($this->input->server('HTTP_X_HTTP_METHOD_OVERRIDE')) $method = strtolower($this->input->server('HTTP_X_HTTP_METHOD_OVERRIDE')); else $method = strtolower($this->input->server('REQUEST_METHOD')); if(in_array($method, array('get', 'delete', 'post', 'put'))) { return $method; } return 'get'; }
[eluser]billmce[/eluser]
The threads is old but it seems to be the only thread dealing with REST on the forum. Is this library still being maintained? Curious, why isn't it on the wiki? TIA
[eluser]danmontgomery[/eluser]
Phil wrote one recently: http://net.tutsplus.com/tutorials/php/wo...igniter-2/
[eluser]billmce[/eluser]
Yep, going through that now as a matter of fact :-)
[eluser]Lovecannon[/eluser]
Yeah I havent really touched this in a long time, sorry about that, I dont even do coding much anymore :\ |
Welcome Guest, Not a member yet? Register Sign In |