mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-13 20:59:12 +08:00
Wrap "true/false" by the code (...) (#12227)
This commit is contained in:
committed by
Alexander Makarov
parent
5731076582
commit
db7f62272e
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user