pagination not anchoring first link when on second page |
[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.
[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;
[eluser]vtatds[/eluser]
thanks, absolutely did it. i didn't consider that since i was sending the segment in the model calls.
[eluser]PeterGreffen[/eluser]
@umefarooq: That did it for me too! Great & thanks!
[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 |
Welcome Guest, Not a member yet? Register Sign In |