Skip to content

Instantly share code, notes, and snippets.

View sakilimran's full-sized avatar
🏠
Working from home

S. M. Sakil Imran sakilimran

🏠
Working from home
View GitHub Profile
@sakilimran
sakilimran / bootstrap_cake_pagination.php
Created March 31, 2016 05:54 — forked from thomseddon/bootstrap_cake_pagination.php
Bootstrap style CakePHP pagination
<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('&laquo;', array('tag' => 'li', 'escape' => false), '<a href="#">&laquo;</a>', array('class' => 'prev disabled', 'tag' => 'li', 'escape' => false));
@sakilimran
sakilimran / pagination bootstrap cakephp
Last active June 6, 2018 13:28
pagination bootstrap cakephp
<ul class="pagination">
<li><?php echo $this->Paginator->prev('<i class="fa fa-chevron-left"></i>', array('escape'=>false,'tag' => 'li'), null, array('escape'=>false, 'tag' => 'li','class' => 'disabled','disabledTag' => 'a')); ?></li>
<li><?php echo $this->Paginator->numbers(array('separator' => '','currentTag' => 'a', 'currentClass' => 'active','tag' => 'li','first' => 1)); ?></li>
<li><?php echo $this->Paginator->next('<i class="fa fa-chevron-right"></i>', array('escape'=>false, 'tag' => 'li','currentClass' => 'disabled'), null, array('escape'=>false,'tag' => 'li','class' => 'disabled','disabledTag' => 'a')); ?></li>
</ul>