PHP codeigniter pagging
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP codeigniter pagging相关的知识,希望对你有一定的参考价值。
function get_data_eJIC_page($start=0, $per_page=0){
//pagination
$config['base_url'] = base_url().'index.php/digital/index';
$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;
}
以上是关于PHP codeigniter pagging的主要内容,如果未能解决你的问题,请参考以下文章
php get_section_param_from_detail_page.php
php优秀框架codeigniter学习系列——CodeIgniter.php概览
SYSTEMPATH/CodeIgniter.php 在第 219 行
Codeigniter 会话不适用于 PHP 7
如何删除codeigniter路径中的“index.php”
php中codeigniter中的应用程序路径