10 $ui = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
14 $text_input = $ui->input()->field()->text(
"Basic Input",
"Just some basic input 15 with some error attached.")
16 ->withError(
"Some error");
19 $form = $ui->input()->container()->form()->standard(
"#", [$text_input]);
22 return $renderer->render(
$form);
if(isset($_POST['submit'])) $form
with_error()
Example show how to create and render a basic text input field with an error attached to it...