[eluser]seeraw[/eluser]
Hi everyone,
Great!!!
and here is the complete working stuff no need to change any file
Write this code in your controller.
$arr['cnt']=$this->login_model->getAllCastChar();
$this->load->library('pagination');
$config['base_url'] = site_url().'HERE IS YOUR CONTROLLER NAME';
$config['total_rows'] = count($arr['cnt']);
$config['per_page'] = '10';
$config['num_links'] = 4; // IT MAY VARY
$config['full_tag_open'] = '<p>';
$config['full_tag_close'] = '</p>';
$config['uri_segment'] = '4';
$this->pagination->initialize($config);
$arr['data']=$this->login_model->getAllCastCharAdmin($config['per_page'],$this->uri->segment(4));
$this->load->view('VIEW NAME',$arr);