CodeIgniter Forums
Pagination class starts from 0 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Pagination class starts from 0 (/thread-32186.html)



Pagination class starts from 0 - El Forum - 07-15-2010

[eluser]Unknown[/eluser]
For some reason when I use the pagination class the href is set to ?page=0 when the actual page number is 1.

Is there a way to get this so page 1 = ?page=1, page 2 = ?page=2 etc?


Pagination class starts from 0 - El Forum - 08-01-2011

[eluser]tomas[/eluser]
Have a look at the wiki;