Browse Source

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

tags/2.0.10
Roman Grinyov 8 years ago committed by Alexander Makarov
parent
commit
db7f62272e
  1. 4
      docs/guide/structure-models.md

4
docs/guide/structure-models.md

@ -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
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
and return false. For example,
is found, it will return `true`. Otherwise, it will keep the errors in the [[yii\base\Model::errors]] property
and return `false`. For example,
```php
$model = new \app\models\ContactForm;

Loading…
Cancel
Save