pagination not anchoring first link when on second page - 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: pagination not anchoring first link when on second page (/showthread.php?tid=34690) |
pagination not anchoring first link when on second page - El Forum - 10-06-2010 [eluser]vtatds[/eluser] When I click on "2" in my pagination links, I get the results I'm expecting as far as data. But, "2" stays anchored and "1" is not anchored. I have the following config for the pagination library in a controller: Code: $this->load->library('pagination'); and place this in my view: Code: echo $this->pagination->create_links(); now that i've finally got a query worked out, I can eliminate the view_all_dates2, but I don't see how that would cause this issue. pagination not anchoring first link when on second page - El Forum - 10-07-2010 [eluser]umefarooq[/eluser] hi every beginner to CI is facing this problem with pagination just define in you config uri segment, by default uri segment is 3, check in your pagination segment Code: $config['uri_segment'] = 3; pagination not anchoring first link when on second page - El Forum - 10-07-2010 [eluser]vtatds[/eluser] thanks, absolutely did it. i didn't consider that since i was sending the segment in the model calls. pagination not anchoring first link when on second page - El Forum - 12-01-2010 [eluser]PeterGreffen[/eluser] @umefarooq: That did it for me too! Great & thanks! pagination not anchoring first link when on second page - El Forum - 06-06-2012 [eluser]amalik[/eluser] Hi, I tried that but it didnt worked for me I have the same code as above but the uri segment for me is 4 as my url is www.mywebsite.com/blog/my_blog/view_blog/. All pages work except page no 1 any ideas? Many Thanks in advance. am |