Go to the source code of this file.
|
| base () |
| Example of how to create and render a basic password field and attach it to a form. More...
|
|
◆ base()
Example of how to create and render a basic password field and attach it to a form.
Definition at line 5 of file base.php.
References $DIC, and $form.
9 $ui = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
13 $pwd_input = $ui->input()->field()->password(
"Password",
"enter your password here");
16 $form = $ui->input()->container()->form()->standard(
"#", [$pwd_input]);
19 return $renderer->render(
$form);
if(isset($_POST['submit'])) $form