Clickalicious\PhpMemAdmin\App::getErrorMessageHtml PHP Method

getErrorMessageHtml() protected method

Returns the HTML for the error message if error is set, otherwise empty string.
Author: Benjamin Carl ([email protected])
protected getErrorMessageHtml ( ) : string
return string The HTML as string
    protected function getErrorMessageHtml()
    {
        $html = '';
        if (false !== ($error = $this->getError())) {
            $html = $this->renderTemplate($this->loadTemplates('messages\\error'), array('error' => $error));
        }
        return $html;
    }