沃梦达 / 编程问答 / php问题 / 正文

codeigniter 分页中第一个数字页的 URL

URL for first number page in codeigniter pagination(codeigniter 分页中第一个数字页的 URL)

本文介绍了codeigniter 分页中第一个数字页的 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将链接号 1 的 url 与其他链接一样,在 codeigniter 分页中,当开始(刷新)页面时

How can put url for link number 1 like other links, in codeigniter pagination, when start(refresh) page

« 第一个 <1 2 3 4 5 > 最后»

« First < 1 2 3 4 5 > Last »

默认数字 11.我希望它像其他号码一样在第一个加载页面中获取链接页面.

by default number 1 is <strong>1</strong>. i want it same like other number get link page in first load page.

怎么样?

推荐答案

它在用于分页的配置中.从文档( http://codeigniter.com/user_guide/libraries/pagination.html):

It's in the config for pagination. From the docs ( http://codeigniter.com/user_guide/libraries/pagination.html ):

//Customizing the "Current Page" Link

$config['cur_tag_open'] = '<a href="'.base_url().$this->uri->uri_string().'">';
$config['cur_tag_close'] = '</a>';

您可以将这些值更改为 或您选择的任何其他内容.

You can change the values of these to <span> or whatever else you choose.

这篇关于codeigniter 分页中第一个数字页的 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:codeigniter 分页中第一个数字页的 URL

基础教程推荐