用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1507|回复: 0
收起左侧

[HELP] http://my.sxmhxc.gov.cn/channel/index/1/3/2.html 分页问题

[复制链接]
发表于 2013-6-16 23:01:18 | 显示全部楼层 |阅读模式
跟多个参数不行
$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 这里

本版积分规则