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

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Pagination - "Next" link not correct (/thread-41239.html)



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/";