El Forum
06-29-2008, 05:39 AM
[eluser]Roosevelt![/eluser]
Hello,
I am not sure if it is a bug or an error in my code. For some reason when I generate
the pagination links, it generates the links as:
1 2 3 4
Where page 3 is linking to 4.
So in a way, page three doesn't even exist.
Hello,
I am not sure if it is a bug or an error in my code. For some reason when I generate
the pagination links, it generates the links as:
1 2 3 4
Where page 3 is linking to 4.
Code:
$this->load->library('pagination');
$config['base_url'] = site_url("products/{$cat_id}/page/");
$config['total_rows'] = 10;
$config['per_page'] = $RowsPerPage; //using $this->db->count_all('products');
$config['uri_segment'] = 4;
echo $this->pagination->initialize($config);
So in a way, page three doesn't even exist.