1
我使用下面的配置分頁如何L1標籤添加到每個錨標記在分頁的笨
$config['base_url'] = base_url() . 'index.php/admin/list_employees';
$config['total_rows'] = $this->database->get_num_records('user');
$config['per_page'] = 10;
$config['uri_segment'] = 3;
$config['num_links'] = 9;
$config['full_tag_open'] = '<div class="text-center"><ul class="pagination">';
$config['full_tag_close'] = '</ul></div><!--pagination-->';
它呈現爲
div class="text-center"><ul="pagination"> <strong>1</strong> <a href="http://localhost/PhpProject2/index.php/admin/list_employees/10">2</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/20">3</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/30">4</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/40">5</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/50">6</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/60">7</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/70">8</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/80">9</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/90">10</a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/10">></a>
<a href="http://localhost/PhpProject2/index.php/admin/list_employees/110">Last ›</a>
</ul></div><!--pagination-->
我如何添加<li>
到每個錨標記