CakePHP: named over url parameters passing
Playing around with CakePHP parameters passing through URL, I’ve noticed that using Paginator helper for listing entities mixes up named and url params in the URL.
For instance, classical paginator URL is:
which looks like:
Any parameter used in the Paginator goes inside of the URL and doesn’t affect the behaviour (in my case, URL param is used for language switching), i.e.
No matter what your
contains - it won’t reflect on the logic.
Thus, if we use another variable
, we can always access it in our viewers and utilize it in the $paginator variable, so our URL will look like:
Useful links:
Additional parameters in $paginator