Closed mikulov closed 7 years ago
the issue you have is that by default, out of range pages are not allowed, and this is validated when calling setCurrentPage
. So if the page size is not yet configured with your expected value at this time, the validation may consider the page out of range while it is actually not with smaller pages.
You indeed need to configure the page size before the current page if you want to keep the validation for out of range pages.
For example, This won't work, default maxPerPage will not be overridden:
This will work fine:
Defaults in pagerfanta.php: