|
报错截图和代码如下:
$this->load->library('pagination');
$perPage = 3;
//配置项设置
$config['base_url'] = site_url('admin/article/index');
$config['total_rows'] = $this->db->count_all_results('article');
$config['per_page'] = $perPage;
$config['uri_segment'] = 4;
$this->pagination->initialize($config);
$data['links'] = $this->pagination->create_links();
p($data);die;
|
|