I'm using backbone and CodeIgniter Rest Server, The post and get requests from backbone works fine But the put and delete requester gets 404 error with the response of {"status":false,"error":"Unknown method."}
edit: I changed the source code to see which method codeigniter is trying to run my controller url is
http://local/host/impacto/index.php/interviews/
the put request url is
http://localhost/impacto/index.php/interviews/13
and the function that codeigniter is running is 13_put instead of input_put
My controller
class Interview extends REST_Controller {
function __construct(){
parent:: __construct();
}
public function index_get(){
echo "get";
}
public function index_post(){
echo "post";
}
public function index_put($id){
echo "update: " . $id;
}
public function index_delete($id){
echo "delete: " . $id;
}
}