Skip to content

Instantly share code, notes, and snippets.

@Debashis-Sinha
Created June 12, 2016 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Debashis-Sinha/2d73999f5c7621b9d3033f9a295dfd7a to your computer and use it in GitHub Desktop.
Save Debashis-Sinha/2d73999f5c7621b9d3033f9a295dfd7a to your computer and use it in GitHub Desktop.
Codeigniter pagination config settings for Twitter Bootstrap 3.3.6
$config['base_url'] = base_url() . 'controller/method/';
$config['total_rows'] = $this->Model->totalRowNoCount();// Total row count
$config['per_page'] = 2;
$config['prev_link'] = '«';
$config['next_link'] = '»';
$config['first_link'] = '';
$config['last_link'] = '';
$config['full_tag_open'] = '<ul class="pagination">';
$config['full_tag_close'] = '</ul>';
$config['prev_tag_open'] = '<li>';
$config['prev_tag_close'] = '</li>';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class="active"><a href="#">';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$config['uri_segment'] = 3;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment