[eluser]weetstraw[/eluser]
I'm having an issue using pagination. The current page of results does not go bold, it stays at 1. In addition, I do not get a back arrow. Below is my controller, any ideas?
I do get the right number of results per page and the results do change when I click 2, 3, etc...
Thanks in advance!
Code:
function discipline()
{
$dis = $this->uri->segment(3);
$offset = $this->uri->segment(4);
$row= $this->Project_model->disciplineCount($dis);
// Pagination
$config=array(
'base_url' => base_url()."projects/discipline/".$dis,
'total_rows' => $row->total,
'per_page' => 12,
'num_links' => 10
);
$this->pagination->initialize($config);
$data = array(
'subTitle' => ' - Projects',
'css' => array('projects'),
'js' => NULL,
'menu' => 'projects',
'id' => NULL,
'dis' => $dis,
'switch' => $this->Project_model->projectDiscipline($dis,$config['per_page'],$this->uri->segment(4)),
'categories' => $this->Project_model->category(),
'disciplines' => $this->Project_model->discipline($dis),
'pagination' => $this->pagination->create_links(),
'boxes' => array('projects-category','projects-discipline')
);
$this->load->view('project_view.php', $data);
}