代码点火器分页
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了代码点火器分页相关的知识,希望对你有一定的参考价值。
make pagination for dataview in model
function get_data_eJIC_page($start=0, $per_page=0){ //pagination $config['total_rows'] = $this->db->get('konver')->num_rows(); $config['per_page'] = $per_page; $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['num_links'] = 10; $config['first_link'] = 'Awal'; $config['last_link'] = 'Akhir'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['prev_tag_open'] = '<li>'; $config['prev_tag_close'] = '</li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $this->pagination->initialize($config); //end if($per_page > 0){ $this->db->from('konver'); $this->db->limit($per_page, $start); $data = $this->db->get(); }else{ $data = $this->db->get('konver'); } return $data; }
以上是关于代码点火器分页的主要内容,如果未能解决你的问题,请参考以下文章