3 declare(strict_types=1);
11 $renderer = $DIC->ui()->renderer();
12 $url = $DIC->http()->request()->getRequestTarget();
16 $parameter_name =
'page3';
22 $pagination =
$factory->viewControl()->pagination()
23 ->withTargetURL(
$url, $parameter_name)
24 ->withTotalEntries(102)
27 ->withCurrentPage($current_page);
29 $custom_pagination = $pagination
30 ->withDropdownLabel(
'current page is %1$d (of %2$d pages in total)');
32 list($range_offset, $range_length) = $pagination->getRange()->unpack();
33 $result =
"Show $range_length entries starting at $range_offset";
35 return $renderer->render([$pagination, $custom_pagination])
Refinery Factory $refinery