getPagination

(Since 1.2.0) -- display pagination controls for any listing page
function getPagination($label = 'Go to page:')
Display the pagination controls for any listing page.

Parameters

ParameterTypeDetails
$label STRING (optional) The descriptive label to appear along with the pagination

Examples

<?php
$pods = new Pod('pod_name');
$pods->findRecords('id DESC', 10);
echo $pods->getPagination();
?>