Codeigniter的分页第一&最后一个链接没有显示

时间:2016-09-04 09:34:38

标签: php codeigniter pagination

我已经检查并尝试了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']       = "&lt;&lt; First";
$config['last_link']        = "Last &gt;&gt;";
$config['first_tag_open']   = $config['last_tag_open'] = '<li>';
$config['first_tag_close']  = $config['last_tag_close'] = '</li>';
$config['prev_link']        = '&laquo';
$config['prev_tag_open']    = '<li class="prev">';
$config['prev_tag_close']   = '</li>';
$config['next_link']        = '&raquo';
$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>';

上述配置效果很好,但FirstLast链接除外。

提前致谢:)

1 个答案:

答案 0 :(得分:0)

请尝试更改:

&raquo -> &raquo;

&laquo -> &laquo;