cakephp PaginationRecall component crashes my application with a different url/pages -
the paginationrecall component giving me headache, let application crash.
i have region view, can call /views/[number of region]
i found out reason crash wants go page:5 although url changed different region has 1 or 2 pages. updated latest cakephp version [v2.3.5] there mention fix 'preventing pagiation limit overflowing max integer value' updating didn't solve problem. not sure if problem paginationrecal component or paginator itself.
for example; can browse url ../regions/view/1/page:5 leave page , when return fine [it remembered last page] when changing url different region ../regions/view/56/ crashes error: error: requested address '/regions/view/56' not found on server. stack trace
core/cake/controller/controller.php line 1074
- @deprecated use paginatorcomponent instead */ public function paginate($object = null, $scope = array(), $whitelist = array()) { return $this->components->load('paginator', $this->paginate)->paginate($object, $scope, $whitelist); }
at first didn't understand crash untill found out related page number. problem never pops-up when browsing on first page. how can fix problem?
i have added paginatorrecall component in /app/controller/appcontroller.php
public $components = array('paginationrecall'); this component: http://bakery.cakephp.org/articles/zaphod/2012/03/27/paginationrecall_for_cakephp_2_x
any appreciated.
solved
after investigating paginatorrecall component doing, found out filters out page:number , stores in session.
i have added rule find out if region changed , if reset page page:1
hope helps else using component well.
Comments
Post a Comment