Browse Source

Using constants instead of literals in Behavior

tags/2.0.0-beta
Paul Kofmann 11 years ago
parent
commit
6e34488fa5
  1. 4
      framework/yii/base/Behavior.php

4
framework/yii/base/Behavior.php

@ -46,8 +46,8 @@ class Behavior extends \yii\base\Object
*
* ~~~
* [
* 'beforeValidate' => 'myBeforeValidate',
* 'afterValidate' => 'myAfterValidate',
* Model::EVENT_BEFORE_VALIDATE => 'myBeforeValidate',
* Model::EVENT_AFTER_VALIDATE => 'myAfterValidate',
* ]
* ~~~
*

Loading…
Cancel
Save