本文介绍了如何添加分页代码点火器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何添加分页codeigniter?
How to add pagination codeigniter ?
我尝试使用此链接,但不起作用
I tryed to use like this link, but it doesn't workhttps://www.cloudways.com/blog/pagination-in-codeigniter/
谢谢您的帮助。
推荐答案
分页是codeigniter中的库之一...
Pagination is one of the libraries in the codeigniter...
$this->load->library('pagination');
$config['base_url'] = 'http://example.com/index.php/test/page/';
$config['total_rows'] = 200;
$config['per_page'] = 20;
$this->pagination->initialize($config);
echo $this->pagination->create_links();
您可以从此处获取参考...
you can get reference from here... https://www.codeigniter.com/userguide3/libraries/pagination.html
这篇关于如何添加分页代码点火器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!