Browse Source

fixed typo

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
f9a92b82df
  1. 2
      docs/guide/upgrade-from-v1.md

2
docs/guide/upgrade-from-v1.md

@ -109,7 +109,7 @@ Yii::$app->trigger($eventName);
If you need to handle all instances of a class instead of the object you can attach a handler like the following: If you need to handle all instances of a class instead of the object you can attach a handler like the following:
```php ```php
Event::on([ActiveRecord::className, ActiveRecord::EVENT_AFTER_INSERT], function ($event) { Event::on([ActiveRecord::className(), ActiveRecord::EVENT_AFTER_INSERT], function ($event) {
Yii::trace(get_class($event->sender) . ' is inserted.'); Yii::trace(get_class($event->sender) . ' is inserted.');
}); });
``` ```

Loading…
Cancel
Save