Welcome Guest, Not a member yet? Register   Sign In
Introducing...REST!
#31

[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';
}
#32

[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
#33

[eluser]danmontgomery[/eluser]
Phil wrote one recently: http://net.tutsplus.com/tutorials/php/wo...igniter-2/
#34

[eluser]billmce[/eluser]
Yep, going through that now as a matter of fact :-)
#35

[eluser]Lovecannon[/eluser]
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