PHP Classes

File: app/Views/Pages/simple.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP GuestBook with Database   app/Views/Pages/simple.php   Download  
File: app/Views/Pages/simple.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP GuestBook with Database
GuestBook application using MySQL to store posts
Author: By
Last change:
Date: 1 year ago
Size: 593 bytes
 

Contents

Class file image Download
<?php

/**
 * @var \CodeIgniter\Pager\PagerRenderer $pager
 */

$pager->setSurroundCount(0);
?>
<div>
    <ul class="pagination">
        <li class="page-item <?= $pager->hasPrevious() ? '' : 'hidden' ?>" <?= $pager->hasPrevious() ? '' : 'hidden' ?>>
            <a class="page-link" href="<?= $pager->getPrevious() ?? '#' ?>"><?= lang('Pager.newer') ?> &laquo;</a>
        </li>
        <li class="page-item">
            <a class="page-link" href="<?= $pager->getnext() ?? '#' ?>" <?= $pager->hasNext() ? '' : 'hidden' ?>>&raquo; <?= lang('Pager.older') ?></a>
        </li>
    </ul>
</div>