Browse Source

Merge pull request #1700 from crtlib/patch-1

Using constants instead of literals in Behavior docs
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
89afcdece8
  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