**This is my controller**
$this->load->library("pagination");
$this->load->helper('url');
$this->load->view('includes/kheader');
$this->load->view('includes/kmenu');
$per_page=$this->input->post('per_page');
$look = $this->input->post('look');
$age = $this->input->post('age');
$age_from = $this->input->post('age_from');
$age_to = $this->input->post('age_to');
$se_ct = $this->input->post('sect');
$subsect = $this->input->post('subsect');
$coun_try = $this->input->post('country');
$sta_te = $this->input->post('state');
$ci_ty = $this->input->post('city');
$qualification = $this->input->post('qualification');
$data['base']=$this->config->item('base_url');
$data['title']= 'Message form';
$this->load->model("searchresultss");
$per_pg=1;
$offset=$this->uri->segment(2);
$total=$this->searchresultss->login($per_pg,$offset,$per_page,$look,$age, $age_to,$age_from,$se_ct,$subsect,$coun_try,$sta_te, $ci_ty, $qualification);
$this->load->library('pagination');
$config['base_url'] = $data['base'].'/searchresult/users/';
$config['total_rows'] = $total;
$config['per_page'] = $per_pg;
$config['full_tag_open'] = '<div id="pagination">';
$config['full_tag_close'] = '</div>';
$this->pagination->initialize($config);
$data['pagination']=$this->pagination->create_links();
$data['query']=$this->searchresultss->login($per_pg,$offset,$per_page,$look,$age, $age_to,$age_from,$se_ct,$subsect,$coun_try,$sta_te, $ci_ty,$qualification);
$this->load->view('searchresult',$data);
Run Code Online (Sandbox Code Playgroud)
**这是我的模特**
public function login($per_page=3,$look,$age,$age_to,$age_from,$se_ct,$subsect,$coun_try, $sta_te, $ci_ty,$qualification,$per_pg,$offset)
{ …Run Code Online (Sandbox Code Playgroud)