示例#1
0
    public function renderAllErrors(UI\Form $form)
    {
        $html = '';
        foreach ($form->getErrors() as $error) {
            $html .= '<div class="alert alert-danger">
							<a class="close" data-dismiss="alert">×</a>' . $error . '
						</div>';
        }
        $errors = new Html();
        $errors->setHtml($html);
        return $errors;
    }