[eluser]nemanjanq[/eluser]
problem with pagination in function - base_url().'people/assigned/index'
this is my function assigned() inside controller people, why is this not working ?
Code:
function assigned()
{
$this->load->library('pagination');
$config['base_url'] = base_url().'people/assigned/index';
$config['per_page'] = '2';
$config['total_rows'] = $this->db->count_all('people');
$this->load->model('get');
$data['query'] = $this->get->get_people($config['per_page'],$this->uri->segment(4), FALSE, '', TRUE);
$this->pagination->initialize($config);
$data['title'] = 'People';
$data['display_msg'] = FALSE;
$this->load->view('people/people', $data);
}