Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Pagination - Limit and Limit Offset query strings
#1

[eluser]Unknown[/eluser]
I have config code for Codeigniter's pagination

Code:
$config['base_url']   = $base_url;
$config['total_rows'] = $total_search_results;
$config['per_page']   = $per_page;
$config['num_links']        = 4;
$config['use_page_numbers'] = FALSE;
$config['page_query_string'] = TRUE;
$config['query_string_segment'] = 'limit-offset';

and in config.php

Code:
$config['enable_query_strings'] = FALSE;

I have "limit" and "limit-offset" values that are gotten from GET query strings which is where I derive the $per_page value.

However, in the pagination links that are produced, I still want to include the "limit" and "limit-offset" values in a url like

Code:
www.domain.com/test/?limit=10&limit-offset=20

How do we do these using Codeigniter Pagination library?




Theme © iAndrew 2016 - Forum software by © MyBB