$pager
Returns the current application pagination.
Table of Contents
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; ?>