Welcome Guest, Not a member yet? Register   Sign In
Paginator links are not updating
#1

[eluser]Steve Moss[/eluser]
So I've set up my Pagination and it works with table, it is updating URL, but the links are not updating. I mean when I click on Page 3 it seems like Page 1 is still active, but it's not. It seems like the links are generating wrong for some reason.

Code:
//Configuring Pagination
$paginationConfig['base_url'] = base_url() . 'admin1/item/index/';
$paginationConfig['total_rows'] = $this->cat_model->getRowCount();
$paginationConfig['per_page'] = '5';
#2

[eluser]Cristian Gilè[/eluser]
Do you remove index.php from your URLs ? Otherwise the base_url setting is wrong and it should be:

Code:
$paginationConfig['base_url'] = site_url('admin1/item/index/');


Cristian Gilè
#3

[eluser]Steve Moss[/eluser]
[quote author="Cristian Gilè" date="1299509859"]Do you remove index.php from your URLs ? Otherwise the base_url setting is wrong and it should be:

Code:
$paginationConfig['base_url'] = site_url('admin1/item/index/');


Cristian Gilè[/quote]
I removed it, yes. The problem was that it took third URI param, but it needed forth. Just added
Code:
$paginationConfig['uri_segment'] = '4';
and it works fine now, thanks.




Theme © iAndrew 2016 - Forum software by © MyBB