Documentation

Pager extends BaseConfig
in package

Table of Contents

Properties

$perPage  : int
-------------------------------------------------------------------------- Items Per Page --------------------------------------------------------------------------
$templates  : array<string, string>
-------------------------------------------------------------------------- Templates --------------------------------------------------------------------------

Properties

$perPage

-------------------------------------------------------------------------- Items Per Page --------------------------------------------------------------------------

public int $perPage = 20

The default number of results shown in a single page.

$templates

-------------------------------------------------------------------------- Templates --------------------------------------------------------------------------

public array<string, string> $templates = ['default_full' => 'CodeIgniter\Pager\Views\default_full', 'default_simple' => 'CodeIgniter\Pager\Views\default_simple', 'default_head' => 'CodeIgniter\Pager\Views\default_head']

Pagination links are rendered out using views to configure their appearance. This array contains aliases and the view names to use when rendering the links.

Within each view, the Pager object will be available as $pager, and the desired group as $pagerGroup;


        
On this page

Search results