validators\Validator validateAttributes()

validateAttributes() public method

Validates the specified object.

public void validateAttributes ( $model, $attributes = null )
$model yii\base\Model

The data model being validated

$attributes array|null

The list of attributes to be validated. Note that if an attribute is not associated with the validator, or is is prefixed with ! char - it will be ignored. If this parameter is null, every attribute listed in $attributes will be validated.

doc_Yii
2016-10-30 17:14:18
Comments
Leave a Comment

Please login to continue.