I am using CakePHP2, and not find how to change (reconfigure) pagination limit, example, from 20 to 30.
There are a “global default limit” to set the number of records into the “paginator” (PaginatorHelper?)?
“global” meaning “all site”.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looking at the code for CakePHP’s Paginator component, it looks like you can set a global limit in a controller (best place would be your AppController) with the following syntax:
I’ve not tested it, but hope it works as desired.