Routing issue - Pagination not working properly |
[eluser]Mauricio de Abreu Antunes[/eluser]
Hello! I have a controller here: http://localhost/percutz/news(page 1) http://localhost/percutz/news/1 (page 1) http://localhost/percutz/news/2 (page 2) Controller executes database method from model and returns a result to $data['news']. No problem at there, but when i go for http://localhost/percutz/news/1 , i have a problem with Code: echo $this->pagination; http://localhost/percutz/news [1] 2 > http://localhost/percutz/news/2 1 [2] > Not showing Last and First and my $config array has $config['first_link'] = 'First New'; and < (previous page). When i go for http://localhost/percutz/news/index/2 (page 2), pagination shows properly! http://localhost/percutz/news/2 First New < 1 [2] > Last New My routes.php Code: $routes['news/(:num)'] = 'news/index/$1'; Thanks! |
Welcome Guest, Not a member yet? Register Sign In |