CodeIgniter Forums
Pagination - "Next" link not correct - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Pagination - "Next" link not correct (/showthread.php?tid=41239)



Pagination - "Next" link not correct - El Forum - 05-02-2011

[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.


Pagination - "Next" link not correct - El Forum - 05-03-2011

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


Pagination - "Next" link not correct - El Forum - 05-03-2011

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