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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

html - Repeat image to extend header to fill screen -

javascript - Backbone.js getting target attribute -