title: CakePHP REST Plugin not returning data
body: <p>I'm looking into using the REST plugin here: <a href="https://github.com/kvz/cakephp-rest-plugin" rel="nofollow">https://github.com/kvz/cakephp-rest-plugin</a> for providing an API that I can use to develop a PhoneGap application.</p>
  
  <p>I've managed to setup the plugin as shown in the documentation, however I'm getting no data back in my JSON... I've seen some issues mentioning the same problem here: <a href="https://github.com/kvz/cakephp-rest-plugin/issues?state=closed" rel="nofollow">https://github.com/kvz/cakephp-rest-plugin/issues?state=closed</a> which I have tried implementing but to no avail.</p>
  
  <p>Has anyone had this issue themselves? The plugin hasn't been updated in a year, so I'm wondering if the inner-workings of Cake have changed causing it to break?</p>
  
  <p>In any case here is my code:</p>
  
  <pre><code>// UsersController
  public $components = array (
          'Rest.Rest' =&gt; array(
              'catchredir' =&gt; true,
              'actions' =&gt; array(
                  'extract' =&gt; array(
                      'test' =&gt; array('users'),
                  ),
              ),
              'ratelimit' =&gt; array(
                  'enable' =&gt; false
              )
          ),
      );
  
  public function test(){
          $users = array(
              array('name' =&gt; 'user-1'),
              array('name' =&gt; 'user-2'),
              array('name' =&gt; 'user-3')
          );
          $this-&gt;set(compact('users'));
      }
  </code></pre>
  
  <p>and in my routes:</p>
  
  <pre><code>Router::mapResources(array('users'));
  
  Router::parseExtensions('rss','json','xml');
  </code></pre>
  
  <p>and here is the returned JSON:</p>
  
  <pre><code>{
      "data": {
          "User": []
      },
      "meta": {
          "status": "ok",
          "feedback": [],
          "request": {
              "http_host": "sample.com",
              "http_user_agent": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit\/537.22 (KHTML, like Gecko) Chrome\/25.0.1364.29 Safari\/537.22",
              "server_addr": "##.##.###.###",
              "remote_addr": "##.###.###.###",
              "server_protocol": "HTTP\/1.1",
              "request_method": "GET",
              "request_uri": "\/users\/test.json",
              "request_time": 1357946870
          },
          "credentials": {
              "class": null,
              "apikey": null,
              "username": null
          },
          "time_epoch": "1357946871",
          "time_local": "Fri, 11 Jan 2013 15:27:51 -0800",
          "version": "0.3"
      }
  }
  </code></pre>