function fy($rows, $url, $segment, $perpage) {
$config ['base_url'] = $url;
$config ['total_rows'] = $rows;
$config ['per_page'] = $perpage;
$config ['uri_segment'] = $segment;
$this->pagination->initialize ( $config );
return $this->pagination->create_links ();
}
function index($row=0){
$user = $this->UserModel->getuserlist($row,10);
$count = $this->UserModel->getusercount();
$url = base_url().'index.php/admins/user/index';
$data['fy'] = $this->fy($count,$url,4,10);
$this->load->view('admin/userlist',$data);
}