ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
with_dedicated_name_and_path.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Input\Field
;
22
33
function
with_dedicated_name_and_path
()
34
{
35
global
$DIC
;
36
$ui =
$DIC
->ui()->factory();
37
$renderer
=
$DIC
->ui()->renderer();
38
39
$street = $ui->input()->field()
40
->text(
"Street"
,
"Street and No."
)
41
->withDedicatedName(
'street'
);
42
43
$city = $ui->input()->field()
44
->text(
"City"
)
45
->withDedicatedName(
'city'
);
46
47
// This creates inputs named 'address/street' and 'address/city'
48
$address = $ui->input()->field()
49
->group([$street, $city],
"Address"
)
50
->withDedicatedName(
'address'
);
51
52
$form = $ui->input()->container()->form()->standard(
""
, [$address]);
53
return
$renderer
->render($form);
54
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Input\Field
ILIAS\UI\examples\Input\Field\with_dedicated_name_and_path
with_dedicated_name_and_path()
Definition:
with_dedicated_name_and_path.php:33
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Input
Field
with_dedicated_name_and_path.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)