19 declare(strict_types=1);
39 $ui = $DIC->ui()->factory();
43 $text_input = $ui->input()->field()->text(
"Basic Input",
"Just some basic input 44 with some error attached.")
45 ->withError(
"Some error");
48 $form = $ui->input()->container()->form()->standard(
"#", [$text_input]);
with_error()
description: > Example shows how to create and render a basic text input field with an error attache...