Skip to content

Instantly share code, notes, and snippets.

@arodu
Created May 30, 2016 18:42
Show Gist options
  • Save arodu/5814f5614b8ad07a7127992a77381ba5 to your computer and use it in GitHub Desktop.
Save arodu/5814f5614b8ad07a7127992a77381ba5 to your computer and use it in GitHub Desktop.
cakephp_pagination_bootstrap.php
<div class="pagination pagination-large">
<ul class="pagination">
<?php
echo $this->Paginator->prev(__('prev'), array('tag' => 'li'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
echo $this->Paginator->numbers(array('separator' => '','currentTag' => 'a', 'currentClass' => 'active','tag' => 'li','first' => 1));
echo $this->Paginator->next(__('next'), array('tag' => 'li','currentClass' => 'disabled'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
?>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment