3 declare(strict_types=1);
24 $f = $DIC->ui()->factory();
30 $target = $DIC->http()->request()->getRequestTarget();
38 $back =
$f->button()->standard(
"Back",
"$target&$param=" . ($active - 1));
39 $next =
$f->button()->standard(
"Next" .
" " . ($active - 1),
"$target&$param=" . ($active + 1));
40 $middle =
$f->button()->standard(
"Go to Engaged Section (Current Section: $active)",
"$target&$param=0");
44 $middle = $middle->withLabel(
"Engaged Section")->withEngagedState(
true);
46 $view_control_section =
$f->viewControl()->section($back, $middle, $next);
47 $html =
$renderer->render($view_control_section);
base()
description: > Example performing a page reload if switching between sections of some data...