protected function view_msg($header, $body, $type) { $label = new control\label($body); $label->configure('TYPE', $type); $form = new control\form('msg'); $form->add($label); $form->configure('PANEL', TRUE); $form->configure('LABEL', $header); $form->configure('TYPE', $type); return ['', $form->draw()]; }