Display the pagination controls. Types supported by default are simple
, paginate
and advanced
. The base and format parameters are used only for the paginate view.
Function Definition
public function pagination ( $params = null )
Source File: /pods/classes/Pods.php
Parameters
PARAMETER | TYPE | DETAILS |
---|---|---|
$params | (array) | Associative array of parameters |
Additional Parameter Options
Returns
(string) Pagination HTML
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<?php $pod = pods( 'my_pod' ); $params = array( 'limit' => 15 ); $pod->find( $params ); // Advanced Pagination echo $pod->pagination( array( 'type' => 'advanced' ) ); // Simple Pagination echo $pod->pagination( array( 'type' => 'simple' ) ); // Paginate echo $pod->pagination( array( 'type' => 'paginate' ) ); |