title: issues with backbone.js DELETE request and codeigniter restserver (phils)
body: <p>I'm sure this is something I'm doing wrong, but I can't seem to figure it out.  I'm using backbone.js to talk to my rest server (Philip Sturgeon's codeigniter restserver). I am running a normal model.destroy() on one of my backbone collections model.  </p>
  
  <pre><code>//a basic example
  tagCollection.at(5).destroy();
  </code></pre>
  
  <p>This creates a proper call to a url like:</p>
  
  <p>DELETE <a href="http://mydomain.com/index.php/tags/tag/id/12" rel="nofollow">http://mydomain.com/index.php/tags/tag/id/12</a></p>
  
  <p>When I get inside my "tag_delete" php function, and do:</p>
  
  <pre><code>$this-&gt;delete('id');
  </code></pre>
  
  <p>This always returns nothing.  I assume this has something to do with the way backbone.js sends it's requests, but nothing is jumping out at me.  Details below.</p>
  
  <p>Backbone is issuing a "DELETE" request.</p>
  
  <p>Relevant code from my REST_Controller method:</p>
  
  <pre><code>function tag_delete () {
      //delete the tag
      $id = $this-&gt;delete('id'); //always empty
  
      $result = $this-&gt;tag_model-&gt;delete($id);
  
      if (! $result) {
          $this-&gt;response(array('status' =&gt; 'failed'), 400);  
      }
  
      $this-&gt;response(array('status' =&gt; 'success'), 200);
  }
  </code></pre>
  
  <p>Any ideas?  Any backbone.js experts run into this when using codeigniter and Philip Sturgeon's restserver?</p>