|
因为版本的升级 这个部分的修改会出现错误 我把适合2.1.2版本的代码贴出来 供大家参考
var $base_url = ''; // The page we are linking to
var $prefix = ''; // A custom prefix added to the path.
var $suffix = ''; // A custom suffix added to the path.
var $total_rows = ''; // Total number of items (database results)
var $per_page = 10; // Max number of items you want shown per page
var $num_links = 4; // Number of "digit" links to show before/after the currently viewed page
var $cur_page = 0; // The current page being viewed
var $use_page_numbers = FALSE; // Use page number for segment instead of offset
var $first_link = '«';
var $next_link = '›';
var $prev_link = '‹';
var $last_link = '»';
var $uri_segment = '<span id=page>3</span>';
var $full_tag_open = '';
var $full_tag_close = '';
var $first_tag_open = '<span id=page>';
var $first_tag_close = '</span>';
var $last_tag_open = '<span id=page>';
var $last_tag_close = '</span>';
var $first_url = ''; // Alternative URL for the First Page.
var $cur_tag_open = '<span id=page>';
var $cur_tag_close = '</span>';
var $next_tag_open = '<span id=page>';
var $next_tag_close = '</span>';
var $prev_tag_open = '<span id=page>';
var $prev_tag_close = '</span>';
var $num_tag_open = '<span id=page>';
var $num_tag_close = '</span>';
var $page_query_string = FALSE;
var $query_string_segment = 'per_page';
var $display_pages = TRUE;
var $anchor_class = '';
原文修改自http://codeigniter.org.cn/forums/thread-2603-1-1.html |
|