Pagination uses 6 settings:
current_page
, total_items
, items_per_page
, view
, auto_hide
and first_page_in_url
.Configuration Examples
This example shows the default configuration:
return
array
(
// Application defaults
'default'
=>
array
(
'current_page'
=>
array
(
'source'
=>
'query_string'
,
'key'
=>
'page'
),
// source: "query_string" or "route"
'total_items'
=> 0,
'items_per_page'
=> 10,
'view'
=>
'pagination/basic'
,
'auto_hide'
=> TRUE,
'first_page_in_url'
=> FALSE,
),
);
This is an example with multiple configurations: