Commit 0222462e by Carsten Brandt

fixed event php-doc

parent a136d67d
...@@ -58,7 +58,7 @@ class Event extends Object ...@@ -58,7 +58,7 @@ class Event extends Object
* `afterInsert` event: * `afterInsert` event:
* *
* ~~~ * ~~~
* 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.');
* }); * });
* ~~~ * ~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment