kvz / cakephp-rest-plugin

Discontinued: recent cakephp versions overlap functionality, there also is @ceeram's plugin. Painless REST server Plugin for CakePHP
http://kvz.io/blog/2010/01/13/cakephp-rest-plugin-presentation/
169 stars 37 forks source link

Empty Data #26

Open DieterGribnitz opened 11 years ago

DieterGribnitz commented 11 years ago

I also got the issue with the component not returning any data.

On line 306 in the RestComponent the code looks like this: if (false === ($extract = @$this->settings['actions'][$this->Controller->action]['extract'])) {

To fix the issue replace it with: if (false === ($extract = @$this->settings['actions']['extract'][$this->Controller->action])) {

There are notices also coming up in new versions of cake. (Could be ) All functions that use $controller should be referenced as follows: beforeRender (Controller $Controller) { instead of beforeRender (&$Controller) {