|
发表于 2015-12-9 19:14:26
|
显示全部楼层
PHP复制代码 $this->load->model('Denyword_model');
$this->load->helper('url');
$this->load->library('pagination');
$this->load->library('table');
$denyword = $this->Denyword_model->get_denywords(5,($this->uri->segment(3)));
$config['base_url'] = $this->config->item('base_url').'index.php/denyword1/index/';
$config['total_row'] = $this->Denyword_model->count_denywords();
$config['per_page'] = 5;
$config['uri_segment'] = 3;
$config['full_tag_open'] = '<p>';
$config['full_tag_close'] = '</p>';
$this->pagination->initialize($config);
$data = array(
'denyword'=>$denyword
);
$this->table->set_heading('敏感词');
$this->load->view('public/header');
$this->load->view('denyword/list1',$data);
$this->load->view('public/footer'); 复制代码
分页图标不显示,$this->pagination->create_links();返回值是空的
但是用“$this->config->item('base_url').'index.php/denyword1/index/1”的形式访问正常,就是没有分页栏
谢谢! |
|