Trouble with Pagination |
[eluser]SpooF[/eluser]
The error your getting usually comes from not telling the pagination class the correct page its currently on. I would double check to see if its getting the right uri segment.
[eluser]Thorpe Obazee[/eluser]
[quote author="SpooF" date="1245679541"]The error your getting usually comes from not telling the pagination class the correct page its currently on. I would double check to see if its getting the right uri segment.[/quote] yeah, that's what I said a while ago. I think the problem also lies as on what his site_url('entry/$type') produces.
[eluser]n0xie[/eluser]
[quote author="bargainph" date="1245680387"][quote author="SpooF" date="1245679541"]The error your getting usually comes from not telling the pagination class the correct page its currently on. I would double check to see if its getting the right uri segment.[/quote] yeah, that's what I said a while ago. I think the problem also lies as on what his site_url('entry/$type') produces.[/quote] Baseurl should end with a '/'
[eluser]Thorpe Obazee[/eluser]
[quote author="n0xie" date="1245681275"][quote author="bargainph" date="1245680387"][quote author="SpooF" date="1245679541"]The error your getting usually comes from not telling the pagination class the correct page its currently on. I would double check to see if its getting the right uri segment.[/quote] yeah, that's what I said a while ago. I think the problem also lies as on what his site_url('entry/$type') produces.[/quote] Baseurl should end with a '/'[/quote] :bug:
[eluser]ferno[/eluser]
I've messed around with a slash at the end, no difference, and my $config['base_url'] seems to be working, I tried manually entering it (not using site_url) and a few other things, it doesn't change. What do you mean by: Quote:I would double check to see if its getting the right uri segment. ??? I've tried changing $config['uri_segment'] before and that didn't make any difference either, unless you mean something different? Thanks again.
[eluser]SpooF[/eluser]
If you can post your current pagination code and the url the class produces I might be able to help you.
[eluser]ferno[/eluser]
ok here's my pagination code (the complete controller function) Code: function entries($type,$start=0) where $data['content_left_top'] is echoed in one div of my view, and $data['content_left_bottom'] is echoed in another div an example starting url is: Code: http://localhost/wat/index.php/wat/entries/newest where the second page would be: Code: http://localhost/wat/index.php/wat/entries/newest/2 etc...
[eluser]Colin Williams[/eluser]
http://www.movieweb.com/video/HUFj8KFMZ7UgJJ
[eluser]ferno[/eluser]
ahh yes, and i had $condig['uri_segment'] instead of $config, that's why it didn't do anything when I was messing around with it before this was solved very quickly, thank you everyone for your responses! and thanks for that video lesson on counting colin lol |
Welcome Guest, Not a member yet? Register Sign In |