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 default value.")
16 ->withValue(
"Default Value");
19 $form = $ui->input()->container()->form()->standard(
"#", [$text_input]);
22 return $renderer->render(
$form);
with_value()
Example show how to create and render a basic text input field with an error attached to it...
if(isset($_POST['submit'])) $form