Help with the pagination class. - 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: Help with the pagination class. (/showthread.php?tid=23406) |
Help with the pagination class. - El Forum - 10-09-2009 [eluser]Twisted1919[/eluser] Hi, i have a page where i list some products , and i use pagination. Nothing too complicated till here. When using pagination ,beside the page numbers, i want to show something like : on page 1: Listing 1-20 of 105 products on page 2: Listing 20-40 of 100 products [...] [...] Last page: Listing 100-105 of 105 products I tryed but i can't achieve this, i know is not too complicated, but i miss something here ... Thank you in advance ! Help with the pagination class. - El Forum - 10-10-2009 [eluser]Twisted1919[/eluser] Heh, i found the answer by myself today in 5 minutes, it's amazing how being rest can think clearly here is the answer if somebody ever has this issue . Code: $segment = $this->uri->segment(3,0); So, pretty simple ... |