Created
November 16, 2016 02:55
-
-
Save aramis-it/9d2dea6e0d419a52b3bf2d15ad24c608 to your computer and use it in GitHub Desktop.
pagination, cakephp 3, 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
<nav aria-label="Page navigation"> | |
<ul class="pagination"> | |
<?php | |
$this->Paginator->templates([ | |
'prevActive' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>' | |
]); | |
$this->Paginator->templates([ | |
'prevDisabled' => '<li class="page-item disabled"><a class="page-link" href="{{url}}">{{text}}</a></li>' | |
]); | |
?> | |
<?= $this->Paginator->prev('Өмнөх') ?> | |
<?php | |
$this->Paginator->templates([ | |
'number' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>' | |
]); | |
?> | |
<?= $this->Paginator->numbers() ?> | |
<?php | |
$this->Paginator->templates([ | |
'nextActive' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>' | |
]); | |
$this->Paginator->templates([ | |
'nextDisabled' => '<li class="page-item disabled"><a class="page-link" href="{{url}}">{{text}}</a></li>' | |
]); | |
?> | |
<?= $this->Paginator->next('Дараах') ?> | |
</ul> | |
</nav> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am glad it helped you :)