Skip to content

Instantly share code, notes, and snippets.

@mpmont
Created August 23, 2012 20:07
Show Gist options
  • Save mpmont/3440991 to your computer and use it in GitHub Desktop.
Save mpmont/3440991 to your computer and use it in GitHub Desktop.
codeigniter pagination params
protected $base_url = ''; // The page we are linking to
protected $prefix = ''; // A custom prefix added to the path.
protected $suffix = ''; // A custom suffix added to the path.
protected $total_rows = 0; // Total number of items (database results)
protected $per_page = 10; // Max number of items you want shown per page
protected $num_links = 2; // Number of "digit" links to show before/after the currently viewed page
protected $cur_page = 0; // The current page being viewed
protected $use_page_numbers = FALSE; // Use page number for segment instead of offset
protected $first_link = '‹ First';
protected $next_link = '>';
protected $prev_link = '<';
protected $last_link = 'Last ›';
protected $uri_segment = 3;
protected $full_tag_open = '';
protected $full_tag_close = '';
protected $first_tag_open = '';
protected $first_tag_close = ' ';
protected $last_tag_open = ' ';
protected $last_tag_close = '';
protected $first_url = ''; // Alternative URL for the First Page.
protected $cur_tag_open = '&nbsp;<strong>';
protected $cur_tag_close = '</strong>';
protected $next_tag_open = '&nbsp;';
protected $next_tag_close = '&nbsp;';
protected $prev_tag_open = '&nbsp;';
protected $prev_tag_close = '';
protected $num_tag_open = '&nbsp;';
protected $num_tag_close = '';
protected $page_query_string = FALSE;
protected $query_string_segment = 'per_page';
protected $display_pages = TRUE;
protected $_attributes = '';
protected $_link_types = array();
protected $reuse_query_string = FALSE;
protected $data_page_attr = 'data-ci-pagination-page';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment