Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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