Welcome Guest, Not a member yet? Register   Sign In
Pagination problem when search in other of pagination link ?

can you show us your correct URI and then what the incorrect URI looks like?

Paginated search results are always a pain to deal with because of the problem of persistence. How do you carry over your query for each page?

One way is to have queries that are good in URLs (like search/index/id/1 might search where id=1) - These can be used with the pagination class if you do something like this:
$config[‘base_url’] = base_url().‘index.php/find/index/’.$this->uri->segment(3).'/'.$this->uri->segment(4);
Where the pagination will still be the last parameter of your URI (the need for the URI segment to be the last in the URI appears to be a necessary consequence of how the pagination class works)

I'm iffy with using sessions to hold complex serialized data such as arrays (mostly because of the hole in my knowledge in that area). If your sessions are being handled in the database, this probably isn't a bad way to go. I like using URLs for search queries because they can be bookmarked.

Messages In This Thread
Pagination problem when search in other of pagination link ? - by El Forum - 01-18-2009, 11:41 AM

Theme © iAndrew 2016 - Forum software by © MyBB