ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
base.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Input\Field\Password
;
6
16
function
base
()
17
{
18
//Step 0: Declare dependencies.
19
global
$DIC
;
20
$ui = $DIC->ui()->factory();
21
$renderer
= $DIC->ui()->renderer();
22
23
//Step 1: Define the input field.
24
$pwd_input = $ui->input()->field()->password(
"Password"
,
"enter your password here"
);
25
26
//Step 2: Define the form and attach the field.
27
$form = $ui->input()->container()->form()->standard(
"#"
, [$pwd_input]);
28
29
//Step 4: Render the form.
30
return
$renderer
->render($form);
31
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Input\Field\Password
Definition:
base.php:5
ILIAS\UI\examples\Input\Field\Password\base
base()
description: > Example of how to create and render a basic password field and attach it to a form...
Definition:
base.php:16
$DIC
global $DIC
Definition:
shib_login.php:25
components
ILIAS
UI
src
examples
Input
Field
Password
base.php
Generated on Wed Sep 10 2025 15:16:44 for ILIAS by
1.8.13 (using
Doxyfile
)