public function getHTMLError() {
        $error = $this->getError();
        if (!is_null($error)) {
            if (is_string($error)) {
                $errorContent = Html::get()->tag('span', $error);
            } elseif (is_array($error)) {
                $errors = array();
                foreach ($error as $message) {
                    $errors[] = Html::get()->tag('li', $message);
                }
                $errorContent = Html::get()->tag('ul', implode("\n", $errors));
            } else {
                $errorContent = '';
            }
            return Html::get()->tag('div', $errorContent, array('class' => 'errors'));
        }
        return '';
    }
public function getHTMLError() {
        $error = $this->getError();
        if (!is_null($error)) {
            if (is_string($error)) {
                $errorContent = Html::get()->tag('span', $error);
            } elseif (is_array($error)) {
                $errors = array();
                foreach ($error as $message) {
                    $errors[] = Html::get()->tag('li', $message);
                }
                $errorContent = Html::get()->tag('ul', implode("\n", $errors));
            } else {
                $errorContent = '';
            }
            return Html::get()->tag('div', $errorContent, array('class' => 'errors'));
        }
        return '';
    }
public function getHTMLError ( ) { $ error = $ this -> getError ( ) ; if ( ! is_null ( $ error ) ) { if ( is_string ( $ error ) ) { $ errorContent = Html :: get ( ) -> tag ( 'span' , $ error ) ; } elseif ( is_array ( $ error ) ) { $ errors = array ( ) ; foreach ( $ error as $ message ) { $ errors [ ] = Html :: get ( ) -> tag ( 'li' , $ message ) ; } $ errorContent = Html :: get ( ) -> tag ( 'ul' , implode ( "\n" , $ errors ) ) ; } else { $ errorContent = '' ; } return Html :: get ( ) -> tag ( 'div' , $ errorContent , array ( 'class' => 'errors' ) ) ; } return '' ; }
Get HTML code for errors.
@return string
Get HTML code for errors .