![]() |
Pagination :( - 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 :( (/showthread.php?tid=60870) |
Pagination :( - El Forum - 07-16-2014 [eluser]BobyKurniawan[/eluser] Hey, it's me again. Maybe you'll get bored because me. Sorry ![]() Now i've a problem with pagination, well everything is work but the number in url is little weird My first page Code: http://localhost/bycms/admin/kategori My second page Code: http://localhost/bycms/admin/kategori/5 Is it really like that? Okey, if that wrong. This is my controller Code: function kategori($offset=null) My model Code: public function tampildata2($num, $offset,$tbl,$x,$field) Thanks before Pagination :( - El Forum - 07-16-2014 [eluser]CroNiX[/eluser] That's normal. I assume you are displaying 5/page? That's the offset. If you want to display the actual page number instead, you'd need to set $config['use_page_numbers'] = TRUE; as per the user guide. Pagination :( - El Forum - 07-16-2014 [eluser]BobyKurniawan[/eluser] [quote author="CroNiX" date="1405528567"]That's normal. I assume you are displaying 5/page? That's the offset. If you want to display the actual page number instead, you'd need to set $config['use_page_numbers'] = TRUE; as per the user guide.[/quote] Man, you always help me with my "CI Problem" thanks a lot |