CodeIgniter Forums
Pagination fails with few records - Bug? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Pagination fails with few records - Bug? (/showthread.php?tid=1939)



Pagination fails with few records - Bug? - El Forum - 07-06-2007

[eluser]woracal[/eluser]
Pagination seems to fail with a smaller resultset. If the num. of records are around 20 the <First Last> links don't show. Is this a known bug? Appreciate some help.... i really need to get this thing fixed..


Pagination fails with few records - Bug? - El Forum - 07-18-2007

[eluser]marcoss[/eluser]
That's a feature, not a bug.

It is pointless to have a first/last buttons when you have just 3 pages to show.

Code:
First | < | 1 | 2 | 3 | > | Last :S

What would be the point in here? Anyone would be able to tell you which is the first and last page in there.

In order to use those links, you need more pages,

Code:
First | < | ... | 5 | 6 | 7 | ... | > | Last