• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pagination - "Next" link not correct

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


Messages In This Thread
Pagination - "Next" link not correct - by El Forum - 05-02-2011, 03:36 PM
Pagination - "Next" link not correct - by El Forum - 05-03-2011, 07:19 AM
Pagination - "Next" link not correct - by El Forum - 05-03-2011, 09:04 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.