Hi I want to create a Restful API in codeIgniter. So I started with testing chris kacer code (https://github.com/chriskacerguis/codeigniter-restserver), but when i tape
localhost:9090/CodeIgniter/index.php/example/user/id/1
I always get this response:
{"status":false,"error":"Unknown method."}
I don't know where is the problem. i configured my routes.php
($route['default_controller'] = "example";)
and config.php
($config['base_url'] = 'http://localhost:9090/CodeIgniter/';)
and it still not working. Can anyone help me please and thank you.
useris it a controller ? If yes you can access it viahttp://localhost:9090/CodeIgniter/user/id/1- Aadil Keshwani