Codeigniter RESTful API Server - XML Error?
you cannot write get function if you use REST_Controller.give that function name test_get
.
class webservice extends REST_Controller{ function test_get() { $data = array(); $data['name'] = "TESTNAME"; $this->response($data); }}
Now you can access the page with this link
http://localhost/myproject/index.php/api/webservice/test
_get and _post is added end of the function to detect either it is get request or post requerst.