validators\Validator addError()

addError() public method

Adds an error about the specified attribute to the model object.

This is a helper method that performs message selection and internationalization.

public void addError ( $model, $attribute, $message, $params = [] )
$model yii\base\Model

The data model being validated

$attribute string

The attribute being validated

$message string

The error message

$params array

Values for the placeholders in the error message

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

Please login to continue.