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