|
跟多个参数不行
$this->load->library('pagination');
$all_data=$this->infomation_model->get_infomation_all($ty);
$allnum=count($all_data);
$config['base_url']='/channel/index/'.$pid.'/'.$ty;
$config['total_rows']=$allnum;
$config['per_page']=1;//每页显示多少调数据
$pageNum=$this->uri->segment(5)?$this->uri->segment(5):1;
if($pageNum==1){
$offset=0;
}else{
$offset=$config['per_page']*($pageNum-1);
}
$data['news']=$this->infomation_model->get_infomation_page($ty,$offset,$config['per_page']);
$this->pagination->initialize($config);
分页不行啊,下一页一直停在http://my.sxmhxc.gov.cn/channel/index/1/3/2.html 这里 |
|