beastbytes / yii2-wizard

Yii2 Extension to handle multi-part form wizards
Other
37 stars 21 forks source link

Event not working #16

Open newerton opened 6 years ago

newerton commented 6 years ago

I upgraded Yii2 to version 2.0.16-dev, and the events does not work.

https://github.com/beastbytes/yii2-wizard/blob/master/WizardBehavior.php#L164

Problem: https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L518

newerton commented 5 years ago

Does not work in version greater than 2.0.13.1

ivankff commented 5 years ago

+1

This problem occurs if you include 'debug' in 'bootstrap' section in your app's config:

if (!YII_ENV_TEST) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    ...
}

In that case variable $event->data is overwritten

php5developer commented 5 years ago

I would suggest to disable "Event Panel" in Debug Panel


    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module',
        'panels'=>[
            'event'=>false,
        ]
    ];