Search code examples
cakephppluginsregistrationuser-management

CakePHP: Passing data to plugin


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?


Solution

  • Resolved! This can be solved by replacing all the $this->data occurences in the SignMeUpComponent with $this->controller->request->data

    It's a change from Cake 1.3 to Cake 2.x