Go to the source code of this file.
|
| base () |
| Example show how to create and render a basic text input field and attach it to a form. More...
|
|
◆ base()
Example show how to create and render a basic text input field and attach it to a form.
This example does not contain any data processing.
Definition at line 6 of file base.php.
References $DIC, and $form.
10 $ui = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
14 $text_input = $ui->input()->field()->text(
"Basic Input",
"Just some basic input");
17 $form = $ui->input()->container()->form()->standard(
"#", [$text_input]);
20 return $renderer->render(
$form);
if(isset($_POST['submit'])) $form