I have a standard cakePHP backend but I'm not using the cake pagination helper. My existing frontend provides pagination params in the form "startIndex, numberOfResults" vs. "page". It would be great if from within the controller action I could just parse my startIndex, numberOfResults params, calc the proper page and then do something like:
paginate['page'] = $pageNumber;
before the paginate() call. No such luck. So my question is, how can I set the paginator page from within the controller? As a bonus: Where is cake parsing the page named param? Where does it store the page value used for the paginate call?
$this->params['named']['page']
, and$this->paginate['page']
doesn't work for me. I think "... without touching the paginate ..." might be my soln. Never noticed the 'page' find option until now. For others - if you use the 'page' find option, don't forget to set 'limit' and 'order' as well. – GTM