cakephp-rest-plugin icon indicating copy to clipboard operation
cakephp-rest-plugin copied to clipboard

Empty Data

Open DieterGribnitz opened this issue 12 years ago • 0 comments

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) {

DieterGribnitz avatar Apr 03 '13 07:04 DieterGribnitz