$pager

Returns the current application pagination.

Table of Contents
  1. Description
  2. Example

Description

This variable is an instance of the Pager class.

Example

<?php if ($prev = $pager->prev): ?>
  <a href="<?= eat($prev->link); ?>" rel="prev">
    <?= i('Previous'); ?>
  </a>
<?php else: ?>
  <a aria-disabled="true" rel="prev">
    <?= i('Previous'); ?>
  </a>
<?php endif; ?>

<?php if ($next = $pager->next): ?>
  <a href="<?= eat($next->link); ?>" rel="next">
    <?= i('Next'); ?>
  </a>
<?php else: ?>
  <a aria-disabled="true" rel="next">
    <?= i('Next'); ?>
  </a>
<?php endif; ?>

$page

Returns the current application page.

$pager

Returns the current application pagination.

$pages

Returns the current application pages.