Events registration examples

Comparing #3 with #4

Content

[...]
parent::init(); // DON'T Forget to call the parent method.
}
```


taked from
https://stackoverflow.com/questions/28575636/how-to-use-events-in-yii2

**Register an event handler at Class-Level**

To register event handlers at Class-Level a good place can be inside the bootstrap process.
[...]