我已经检查并尝试了user_guides,但没有任何对我有用。
所以这就是我的分页配置
$config['base_url'] = $getSiteUrl; //Pagination Url
$config['total_rows'] = $totalRows; //Total Number of records
$config['per_page'] = $perPage; //Number of records per page
$config['page_query_string']= TRUE;
$config['query_string_segment'] = "page";
$choice = $config["total_rows"] / $config["per_page"];
$config["num_links"] = floor($choice);
$config['use_page_numbers'] = TRUE;
//config for bootstrap pagination class integration
$config['full_tag_open'] = '<ul class="pagination">';
$config['full_tag_close'] = '</ul>';
$config['first_link'] = "<< First";
$config['last_link'] = "Last >>";
$config['first_tag_open'] = $config['last_tag_open'] = '<li>';
$config['first_tag_close'] = $config['last_tag_close'] = '</li>';
$config['prev_link'] = '«';
$config['prev_tag_open'] = '<li class="prev">';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '»';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class="active"><a>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
上述配置效果很好,但First
和Last
链接除外。
提前致谢:)
答案 0 :(得分:0)
请尝试更改:
» -> »
和
« -> «