class pagination produce wrong page links |
[eluser]Unknown[/eluser]
hai, pls check this code correctly. i explain total rows is 6 to assign config $config['total_rows'] = '6'; per_page is 5 to assign config.its meaning num of data show per page(5 datas) $config['total_rows'] = '5'; FIND NUM OF PAGES Code: $numPages = ceil($config['total_rows']/$config['total_rows']); answer is 2 in case current page is 1 also next page is 2,but CI produce 5 1 2 > http://example.com/index.php/test/page/5 url segment value is 5 its wrong. I FIND SOLUTION .i have change some lines in function create_links |
Messages In This Thread |
class pagination produce wrong page links - by El Forum - 09-08-2010, 12:44 AM
class pagination produce wrong page links - by El Forum - 09-08-2010, 02:54 AM
class pagination produce wrong page links - by El Forum - 09-08-2010, 03:38 AM
class pagination produce wrong page links - by El Forum - 09-08-2010, 05:27 AM
class pagination produce wrong page links - by El Forum - 09-08-2010, 09:58 AM
|