Access DELETE and PUT data using the input library |
[eluser]mptre[/eluser]
Hi there! I'm currently working on a RESTful API using Codeigniter. One thing that bothered me was the lack of accessing the passed arguments when the HTTP-method is set to either DELETE or PUT. So I wrote a simple extension to the existing input library. Any thoughts or feedback is much appreciated! Code: <?php
[eluser]Phil Sturgeon[/eluser]
Yeah that's how I did it with my RESTful Implementation. They left it out as they are not commonly used for general web-applications. There is no way to even use those HTTP verbs without cURL.
[eluser]mptre[/eluser]
Ah your blogpost on REST implementation got me inspired enough to start this project Thanks for the feedback.
[eluser]Unknown[/eluser]
For CodeIgniter2, change "parent::CI_Input();" to "parent::__construct();" |
Welcome Guest, Not a member yet? Register Sign In |