I use cakePHP 3.3 and I want to have a filter with the option to change the limit. This option should have the current limit selected.
What is the best way to get the current limit
or results per page used in the Paginator in my view?
I use <?= $this->Paginator->counter('{{current}}'); ?>
but this feels hacky and it is the limit as a string.
Also if the results are less than the limit, this will not show the limit but the number of found results.