hello i want to use event in my code i follow the steps on given link
[blog=‘http://stackoverflow.com/questions/28575636/how-to-use-events-in-yii2’]http://stackoverflow.com/questions/28575636/how-to-use-events-in-yii2
[/blog]
i am getting the sender information . But when by using
on()
how i can get the data related to $user_details.
$model_signup->on(SignUpForm::EVENT_NEW_USER, ['model_auth' => $model_auth,'user_details' => $user_details]);
$model_signup->trigger(SignUpForm::EVENT_NEW_USER);
Please help me i get stuck in my code.