/**
* 显示文章列表
* @return void
*/
public function index($offset = '')
{
$config['base_url'] = site_url('admin/article/index/');
$config['total_rows'] = $this->article_model->get_article_sum(); //文章总条数
$config['per_page'] = 2; //每页显示多少条记录
$config['uri_segment'] = 4;
$this->pagination->initialize($config); //这样做后究竟发生了什么事情?
$data['links'] = $this->pagination->create_links();
$limit = $config['per_page'];
// $offset = $this->uri->segment(4);
$data['article_list'] = $this->article_model->get_per_page($limit, $offset);
$this->load->view('list.html', $data);
}