Commit eaaf5f02 by Qiang Xue

replaced tabs with spaces in docs.

parent 994780d1
...@@ -258,7 +258,7 @@ for example the [[yii\validators\InlineValidator::$skipOnEmpty|skipOnEmpty]] pro ...@@ -258,7 +258,7 @@ for example the [[yii\validators\InlineValidator::$skipOnEmpty|skipOnEmpty]] pro
[['birthdate'], 'validateAge', 'params' => ['min' => '12'], 'skipOnEmpty' => false], [['birthdate'], 'validateAge', 'params' => ['min' => '12'], 'skipOnEmpty' => false],
``` ```
### conditional validation ### Conditional validation
To validate attributes only when certain conditions apply, e.g. the validation of To validate attributes only when certain conditions apply, e.g. the validation of
one field depends on the value of another field you can use [[yii\validators\Validator::when|the `when` property]] one field depends on the value of another field you can use [[yii\validators\Validator::when|the `when` property]]
...@@ -353,7 +353,7 @@ class User extends ActiveRecord ...@@ -353,7 +353,7 @@ class User extends ActiveRecord
} }
``` ```
For the code above mass assignment will be allowed stsrictly according to `scenarios()`: For the code above mass assignment will be allowed strictly according to `scenarios()`:
```php ```php
$user = User::find(42); $user = User::find(42);
......
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