Home:ALL Converter>CakePHP: Passing data to plugin

CakePHP: Passing data to plugin

Ask Time:2012-09-23T07:17:40         Author:Cos

Json Formatter

I have installed a plugin (SignMeUp) for the user registration, and according to the documentation the registration function inside my User Controller has to look something like this:

public function register() {
    $this->SignMeUp->register();
}

Looking at the $this->data array inside this function shows that everything is working fine. However, when I use

debug($this->data);

inside the registration() function of the plugin (the one I just directed my function to), the array is empty. Somehow the data doesn't get passed on. What could be the cause?

Author:Cos,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12548454/cakephp-passing-data-to-plugin
yy