Showing posts with label kohana 3 Pagination. Show all posts
Showing posts with label kohana 3 Pagination. Show all posts

Pagination Configuration


Pagination uses 6 settings: current_pagetotal_itemsitems_per_pageviewauto_hideand 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: