Kohana pagination

??????? $pagination = new Pagination(array(
??????????? 'base_url'??? => 'admin/app', // base_url will default to current uri
??????????? 'uri_segment'??? => 'page', // pass a string as uri_segment to trigger former 'label' functionality
??????????? 'total_items'??? => $_totalnum, // use db count query here of course
??????????? 'items_per_page' => $_perPage, // it may be handy to set defaults for stuff like this in config/pagination.php
??????????? 'style'????????? => 'classic', // pick one from: classic (default), digg, extended, punbb, or add your own!
??????????? /// 'query_string'?? => 'page',
??????? ));

the above will generate url like:
admin/app/page/1
but if you wanna pass more get parameters, you can uncomment the 'query_string', the url will be generated like:
admin/app?page=1

你可能感兴趣的:(PHP)