Welcome Guest, Not a member yet? Register   Sign In
Pagination on a search page
#6

[eluser]taewoo[/eluser]
Don't cache.

Have two controllers -
A) "Receive" the actual search form parameters via $this->input->post . This redirects to the second controller via

Code:
redirect('search/query/QUERY_STRING/')

B) your controller 'search' has a method 'query' that takes the QUERY_STRING and does your search thing.


The on the pagination, use 'search/query/PAGE_NUMBER' instead of using the 1st controller.

Thus no need for caching... plus this is prettier and people can book mark it.


Messages In This Thread
Pagination on a search page - by El Forum - 08-24-2007, 12:21 PM
Pagination on a search page - by El Forum - 08-25-2007, 01:29 PM
Pagination on a search page - by El Forum - 09-10-2007, 12:36 PM
Pagination on a search page - by El Forum - 09-10-2007, 04:46 PM
Pagination on a search page - by El Forum - 04-17-2008, 04:18 PM
Pagination on a search page - by El Forum - 04-17-2008, 05:34 PM
Pagination on a search page - by El Forum - 04-17-2008, 05:37 PM
Pagination on a search page - by El Forum - 04-18-2008, 02:20 AM
Pagination on a search page - by El Forum - 04-18-2008, 10:51 AM
Pagination on a search page - by El Forum - 04-18-2008, 02:09 PM
Pagination on a search page - by El Forum - 04-19-2008, 04:08 PM
Pagination on a search page - by El Forum - 04-19-2008, 08:36 PM
Pagination on a search page - by El Forum - 04-20-2008, 01:48 PM
Pagination on a search page - by El Forum - 06-07-2011, 08:53 PM
Pagination on a search page - by El Forum - 06-09-2011, 01:35 AM
Pagination on a search page - by El Forum - 06-10-2011, 04:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB