Wrap "true/false" by the code (...) (#12227)

This commit is contained in:
Roman Grinyov
2016-08-21 13:49:53 +03:00
committed by Alexander Makarov
parent 5731076582
commit db7f62272e

View File

@@ -242,8 +242,8 @@ should be displayed to help the user to fix the errors.
You may call [[yii\base\Model::validate()]] to validate the received data. The method will use You may call [[yii\base\Model::validate()]] to validate the received data. The method will use
the validation rules declared in [[yii\base\Model::rules()]] to validate every relevant attribute. If no error the validation rules declared in [[yii\base\Model::rules()]] to validate every relevant attribute. If no error
is found, it will return true. Otherwise, it will keep the errors in the [[yii\base\Model::errors]] property is found, it will return `true`. Otherwise, it will keep the errors in the [[yii\base\Model::errors]] property
and return false. For example, and return `false`. For example,
```php ```php
$model = new \app\models\ContactForm; $model = new \app\models\ContactForm;