CodeIgniter Forums

Full Version: Pagination - "Next" link not correct
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]jwp[/eluser]
I am having a problem with the ">" link that is returned from the pagination helper and wanted to see if anyone could provide any help.

$config['total_rows'] = $cnt; //$ cnt = 177
$config['per_page'] = $offset; // $offset = 25
$config['uri_segment'] = 3 ;
$config['num_links'] = 4;
$config['query_string_segment'] = 'limit' ;
$this->pagination->initialize($config);
$pagination = $this->pagination->create_links();

I receive pagination back as would be expected (1 2 3 4 5 > Last ›) with the exception that the > (next) link is the same as the 1 link.

For clarity:

1 = base_url/controller/function/&limit=0
2 = base_url/controller/function/&limit=25
3 = base_url/controller/function/&limit=50
4 = base_url/controller/function/&limit=75
5 = base_url/controller/function/&limit=100
> = base_url/controller/function/&limit=0
Last = base_url/controller/function/&limit=175

Has anyone experienced similar or might know what is going on here?

Thanks in advance.

El Forum

[eluser]Sudz[/eluser]
Where is your $config['base_url']

El Forum

[eluser]jwp[/eluser]
$config['base_url'] = base_url() . "/index.php/fbo_view/save_search_fbo/";