ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_dedicated_name.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 {
34  global $DIC;
35  $ui = $DIC->ui()->factory();
36  $renderer = $DIC->ui()->renderer();
37 
38  $text_input = $ui->input()->field()
39  ->text("Just Another Input", "I'm just another input");
40 
41  $form = $ui->input()->container()->form()->standard("", [$text_input]);
42  $form = $form->withDedicatedName('userform');
43  return $renderer->render($form);
44 }
$renderer
with_dedicated_name()
description: > Example showing a Form with an optional dedicated name which is used as NAME attribut...
global $DIC
Definition: shib_login.php:22