Paginator links are not updating - 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: Paginator links are not updating (/showthread.php?tid=39272) |
Paginator links are not updating - El Forum - 03-06-2011 [eluser]Steve Moss[/eluser] So I've set up my Pagination and it works with table, it is updating URL, but the links are not updating. I mean when I click on Page 3 it seems like Page 1 is still active, but it's not. It seems like the links are generating wrong for some reason. Code: //Configuring Pagination Paginator links are not updating - El Forum - 03-07-2011 [eluser]Cristian Gilè[/eluser] Do you remove index.php from your URLs ? Otherwise the base_url setting is wrong and it should be: Code: $paginationConfig['base_url'] = site_url('admin1/item/index/'); Cristian Gilè Paginator links are not updating - El Forum - 03-07-2011 [eluser]Steve Moss[/eluser] [quote author="Cristian Gilè" date="1299509859"]Do you remove index.php from your URLs ? Otherwise the base_url setting is wrong and it should be: Code: $paginationConfig['base_url'] = site_url('admin1/item/index/'); Cristian Gilè[/quote] I removed it, yes. The problem was that it took third URI param, but it needed forth. Just added Code: $paginationConfig['uri_segment'] = '4'; |