Welcome Guest, Not a member yet? Register   Sign In
Search with $term and pagination
#4

[eluser]TheFuzzy0ne[/eluser]
You need to limit your results and also use an offset, so your model method should expect two more parameters, one for the page number or offset, and the other for the number of results. You will also need a method that will count the total results.

One thing you'll need to bare in mind, is how you keep the current search term. It's difficult to pass it through the URL due to the permitted_uri_chars. You may need to store it in the cookie, or to create a system that will assign a string consisting of characters that are permitted, which will be stored in the database along with the search parameters for that query.


Messages In This Thread
Search with $term and pagination - by El Forum - 05-29-2013, 12:11 PM
Search with $term and pagination - by El Forum - 05-29-2013, 05:32 PM
Search with $term and pagination - by El Forum - 05-30-2013, 01:58 AM
Search with $term and pagination - by El Forum - 05-30-2013, 04:13 AM
Search with $term and pagination - by El Forum - 05-30-2013, 04:16 AM
Search with $term and pagination - by El Forum - 05-30-2013, 04:17 AM
Search with $term and pagination - by El Forum - 05-30-2013, 04:24 AM
Search with $term and pagination - by El Forum - 05-30-2013, 04:27 AM
Search with $term and pagination - by El Forum - 05-30-2013, 09:37 AM
Search with $term and pagination - by El Forum - 05-30-2013, 10:15 AM
Search with $term and pagination - by El Forum - 05-30-2013, 10:17 AM
Search with $term and pagination - by El Forum - 06-06-2013, 08:31 AM
Search with $term and pagination - by El Forum - 06-06-2013, 04:55 PM
Search with $term and pagination - by El Forum - 06-07-2013, 01:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB