Last active
December 11, 2015 17:38
-
-
Save ytkhs/4635453 to your computer and use it in GitHub Desktop.
cakephp 2.3+ pagination like twitter bootstrap
This file contains hidden or 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
| <div class="pagination pagination-centered"> | |
| <ul> | |
| <?php | |
| echo $this->Paginator->prev( | |
| '前へ', | |
| array( | |
| 'tag' => 'li', | |
| 'disabledTag' => 'a' | |
| ), | |
| null, | |
| array( | |
| 'tag' => 'li', | |
| 'disabledTag' => 'a', | |
| 'class' => 'disabled' | |
| ) | |
| ); | |
| echo $this->Paginator->numbers( | |
| array( | |
| 'separator' => null, | |
| 'tag' => 'li', | |
| 'currentClass' => 'active', | |
| 'currentTag' => 'a' | |
| ) | |
| ); | |
| echo $this->Paginator->next( | |
| '次へ', | |
| array( | |
| 'tag' => 'li', | |
| 'disabledTag' => 'a' | |
| ), | |
| null, | |
| array( | |
| 'tag' => 'li', | |
| 'disabledTag' => 'a', | |
| 'class' => 'disabled' | |
| ) | |
| ); | |
| ?> | |
| </ul> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment