CodeIgniter Forums
Is it possible to read PUT and DELETE requests using codeigniter? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Is it possible to read PUT and DELETE requests using codeigniter? (/thread-71148.html)



Is it possible to read PUT and DELETE requests using codeigniter? - aslamdoctor - 07-12-2018

I am creating an API server using CI and created few basic functions like insert, update, delete, read. But I was wondering if it is possible to do update action by reading PUT request from any form and do delete action using DELETE request.

I tried to look into user guide, and as it says on below link, we can do it using input_stream method.
https://www.codeigniter.com/user_guide/libraries/input.html#using-the-php-input-stream

Not sure how to do that. Any help?


RE: Is it possible to read PUT and DELETE requests using codeigniter? - ciadmin - 07-12-2018

See https://www.codeigniter.com/user_guide/general/routing.html#using-http-verbs-in-routes