errorSummary() public static method
Generates a summary of the validation errors.
If there is no validation error, an empty error summary markup will still be generated, but it will be hidden.
public static string errorSummary ( $models, $options = [] ) | ||
---|---|---|
$models | yii\base\Model|yii\base\Model[] |
The model(s) whose validation errors are to be displayed. |
$options | array |
The tag options in terms of name-value pairs. The following options are specially handled:
The rest of the options will be rendered as the attributes of the container tag. |
return | string |
The generated error summary |
Please login to continue.