title: PUT method not working (CodeIngiter + Codeigniter rest server)
body: <p>I'm using Codeigniter 3.01 and <a href="https://github.com/chriskacerguis/codeigniter-restserver" rel="nofollow noreferrer">Codeigniter rest server</a><br>
  I'm having a problems in put method.
  When i run <code>http://codeang.si/api/task/id/2</code> via put method (check attached picture) and try to <code>var_dump($data);</code> i get this "empty" result:</p>
  
  <pre><code>array (size=3)
    'task' =&gt; boolean false
    'active' =&gt; boolean false
    'date_c' =&gt; string '2015-10-11 12:10' (length=16) 
  </code></pre>
  
  <p>This is my api controller:</p>
  
  <pre><code>    &lt;?php
  require(APPPATH.'libraries/REST_Controller.php');
  
  
  class Api extends REST_Controller{
  
      function tasks_get(){
          // respond with information about a task
          $task = $this-&gt;tm-&gt;get_all();
          if($task){
              $this-&gt;response($task, 200);
          }else{
              $this-&gt;response(NULL, 404);
          }
      }
  
      function task_get(){
          // respond with information about a task
          if(!$this-&gt;get('id')){
              $this-&gt;response(NULL, 400);
          }
          $task = $this-&gt;tm-&gt;get($this-&gt;get('id'));
          if($task){
              $this-&gt;response($task, 200);
          }else{
              $this-&gt;response(NULL, 404);
          }
      }
  
      function task_post(){
          // create task
          $data = array(
              'task' =&gt; $this-&gt;post('task'),
              'active' =&gt; $this-&gt;post('active'),
              'date_c' =&gt; date("Y-m-d h:i:s")
          );
          $result = $this-&gt;tm-&gt;create( $data);
          if($result === FALSE){
              $this-&gt;response(array('status' =&gt; 'failed'));
          }else{
              $this-&gt;response(array('status' =&gt; 'success'));
          }
      }
  
      function task_put(){
          // update task
          $id = $this-&gt;get('id');
          $data = array(
              'task' =&gt; $this-&gt;put('task'),
              'active' =&gt; $this-&gt;put('active'),
              'date_u' =&gt; date("Y-m-d h:i:s")
          );
          var_dump($data, $id);
          die();
          $result = $this-&gt;tm-&gt;update($this-&gt;get('id'), $data);
          if($result === FALSE){
              $this-&gt;response(array('status' =&gt; 'failed'));
          }else{
              $this-&gt;response(array('status' =&gt; 'success'));
          }
      }
  
      function task_delete(){
          //delete a task and respond with a status/errors
          $result = $this-&gt;tm-&gt;delete($this-&gt;get('id'));
          if($result === FALSE){
              $this-&gt;response(array('status' =&gt; 'failed'));
          }else{
              $this-&gt;response(array('status' =&gt; 'success'));
          }
      }
  
  }
  </code></pre>
  
  <p>And this is my request with result:
  <a href="https://i.stack.imgur.com/nEYgQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nEYgQ.png" alt="Result"></a></p>
  
  <p>I hope someone can help.
  Thank you in advance</p>