Kernel/Html.php
static function ValidateSummary()
    {
        $erros = ModelState::getErrors();
        if (count($erros) > 0):
            $html = '<ul class="validate-summary">';

            foreach ($erros as $erro) {
                $html .= '<li>' . $erro . '</li>';
            }

            $html .= '</ul>';

            echo $html;
        endif;
    }
static function ValidateSummary()
    {
        $erros = ModelState::getErrors();
        if (count($erros) > 0):
            $html = '<ul class="validate-summary">';

            foreach ($erros as $erro) {
                $html .= '<li>' . $erro . '</li>';
            }

            $html .= '</ul>';

            echo $html;
        endif;
    }
static function ValidateSummary ( ) { $ erros = ModelState :: getErrors ( ) ; if ( count ( $ erros ) > 0 ) : $ html = '<ul class="validate-summary">' ; foreach ( $ erros as $ erro ) { $ html .= '<li>' . $ erro . '</li>' ; } $ html .= '</ul>' ; echo $ html ; endif ; }
ValidateSumary - Exibe os erros do modelstate na tela
ValidateSumary - Exibe os erros do modelstate na tela