Welcome Guest, Not a member yet? Register   Sign In

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'));
$method = strtolower($this->input->server('REQUEST_METHOD'));

if(in_array($method, array('get', 'delete', 'post', 'put')))
return $method;

return 'get';

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?


Phil wrote one recently: http://net.tutsplus.com/tutorials/php/wo...igniter-2/

Yep, going through that now as a matter of fact :-)

Yeah I havent really touched this in a long time, sorry about that, I dont even do coding much anymore :\

Theme © iAndrew 2016 - Forum software by © MyBB