how to let cakephp paginator go to the last page, when user input a page number is bigger than max page (overflow)? -
let have 21 records
my view shows 10 records per page
and on page:3, , delete record , refresh page
cake show not found error
how can go page 2(last page), instead of showing error message ?
i checked paginatorcomponent.php throw notfoundexception
if ($requestedpage > $page) { throw new notfoundexception(); }
according manual have catch exception , redirect right page
Comments
Post a Comment