
Cody Roodaka - 2013-02-23 02:48:30 -
In reply to message 1 from Marco Rossi
Hi! thanks for comment, The class uses pure mathematics to calculate the number of pages to show.
Example with yours values:
$total = 191;
$results_per_page = 10;
// in this case a total of 19 pages.
Well, the class is ready to not show pages 'nonexistent' what happens reductions resulting nodes, for example:
// if you're on page 11, you will see this
First Prev 6 7 8 9 10 [11] 12 13 14 15 Next Last
// Now, if you're on page 18, you will see this:
First Prev 13 14 15 16 17 [18] 19 Next Last
// The amount reduced because the pages 20, 21 and 22 do not exist (whether to display null values ​​then be displayed)
I hope I explained well, in any case I am at your disposal :)
Excuse my english, I'm Argentinian.