How to use events in yii2?
I can explain events by a simple example. Let’s say, you want to do few things when a user first registers to the site like: Send an email to the admin. Create a notification. you name it. You may try to call a few methods after a user object is successfully saved. Maybe like this: … Read more