Commit 89afcdec by Qiang Xue

Merge pull request #1700 from crtlib/patch-1

Using constants instead of literals in Behavior docs
parents 0b28f290 6e34488f
...@@ -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