Last active
November 6, 2020 11:08
-
-
Save thomseddon/10997335 to your computer and use it in GitHub Desktop.
Bootstrap style CakePHP pagination
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
<p> | |
<?php | |
echo $this->Paginator->counter(array( | |
'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}') | |
)); | |
?> | |
</p> | |
<ul class="pagination"> | |
<?php | |
echo $this->Paginator->prev('«', array('tag' => 'li', 'escape' => false), '<a href="#">«</a>', array('class' => 'prev disabled', 'tag' => 'li', 'escape' => false)); | |
echo $this->Paginator->numbers(array('separator' => '', 'tag' => 'li', 'currentLink' => true, 'currentClass' => 'active', 'currentTag' => 'a')); | |
echo $this->Paginator->next('»', array('tag' => 'li', 'escape' => false), '<a href="#">»</a>', array('class' => 'prev disabled', 'tag' => 'li', 'escape' => false)); | |
?> | |
</ul> |
Above code not working with bootstrap 4.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good job. I just needed the First and Last buttons..
Follow code.
Thanks.