caojiabin / pagination
The kohana module for pagination
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Type:kohana-module
Requires
- php: >=5.3.3
- composer/installers: ~1.0
- kohana/core: >=3.3
Requires (Dev)
- kohana/core: 3.3.*@dev
- kohana/koharness: *@dev
- kohana/unittest: 3.3.*@dev
This package is auto-updated.
Last update: 2025-03-22 20:01:43 UTC
README
安装
composer require "caojiabin/pagination"
使用admin模板,在config.php下添加pagination.php
<?php
defined('SYSPATH') or die('No direct script access.');
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' => 20,
'view' => 'pagination/admin',
'auto_hide' => TRUE,
'first_page_in_url' => FALSE,
),
);