Go to the source code of this file.
|
| disabled () |
| Example showing how to plug a disabled radio into a form. More...
|
|
◆ disabled()
Example showing how to plug a disabled radio into a form.
Definition at line 5 of file disabled.php.
References $DIC, and $result.
9 $ui = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
11 $request = $DIC->http()->request();
15 $radio = $ui->input()->field()->radio(
"Radio",
"Cannot check an option")
16 ->withOption(
'value1',
'label1')
17 ->withOption(
'value2',
'label2')
18 ->withOption(
'value3',
'label3')
23 $form = $ui->input()->container()->form()->standard(
'#', [
'radio' => $radio]);
27 if ($request->getMethod() ==
"POST") {
28 $form = $form->withRequest($request);
36 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
37 $renderer->render($form);