public static errorSummary ( mixed $model, string $header = null, string $footer = null, array $htmlOptions = [] ) : string | ||
$model | mixed | the models whose input errors are to be displayed. |
$header | string | a piece of HTML code that appears in front of the errors. |
$footer | string | a piece of HTML code that appears at the end of the errors. |
$htmlOptions | array | additional HTML attributes to be rendered in the container div tag. |
return | string | the error summary. Empty if no errors are found. |