Commit 6e34488f by Paul Kofmann

Using constants instead of literals in Behavior

parent 369b9c27
...@@ -46,8 +46,8 @@ class Behavior extends \yii\base\Object ...@@ -46,8 +46,8 @@ class Behavior extends \yii\base\Object
* *
* ~~~ * ~~~
* [ * [
* 'beforeValidate' => 'myBeforeValidate', * Model::EVENT_BEFORE_VALIDATE => 'myBeforeValidate',
* 'afterValidate' => 'myAfterValidate', * Model::EVENT_AFTER_VALIDATE => 'myAfterValidate',
* ] * ]
* ~~~ * ~~~
* *
......
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