base\Model addErrors()

addErrors() public method (available since version 2.0.2)

Adds a list of errors.

public void addErrors ( array $items )
$items array

A list of errors. The array keys must be attribute names. The array values should be error messages. If an attribute has multiple errors, these errors must be given in terms of an array. You may use the result of getErrors() as the value for this parameter.

doc_Yii
2016-10-30 16:51:45
Comments
Leave a Comment

Please login to continue.