Created
July 28, 2018 13:44
-
-
Save epynic/3143ccb64f8e892b212c2add8f1aa8bf to your computer and use it in GitHub Desktop.
CodeIgniter 3.x pagination config for Bootstrap 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$config['total_rows'] = 100; | |
$config['per_page'] = 20; | |
$config['num_tag_open'] = '<li class="page-item">'; | |
$config['num_tag_close'] = '</li>'; | |
$config['cur_tag_open'] = '<li class="page-item active"> <span class="page-link">'; | |
$config['cur_tag_close'] = '</span> </li>'; | |
$config['attributes'] = array('class' => 'page-link'); | |
$this->pagination->initialize($config); | |
echo $this->pagination->create_links(); | |
#https://getbootstrap.com/docs/4.0/components/pagination/ | |
#https://www.codeigniter.com/userguide3/libraries/pagination.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment