Pagination and page number. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Pagination and page number. (/showthread.php?tid=6895) |
Pagination and page number. - El Forum - 03-16-2008 [eluser]jedre[/eluser] Hello! Why CI generate links in pagination as: Code: page_number - 1 For example my URL looks like: http://mypage.com/articles/1/page/2 When I look on URL I think I'm on second page, it's not true I'm on third page!! Can I change it? Pagination and page number. - El Forum - 03-17-2008 [eluser]Glen Swinfield[/eluser] No, because page 1 starts from record 0, that is how pages are calculated. You could rewrite the pagination class and change the way it works, but I wouldn't bother. |