Last updated on February 10, 2018
Here is the list of $config settings to style the pagination links properly in Codeigniter with Twitter Bootstrap CSS & markup.
To avoid loading each time in each controller we can place bellow config array in config folder with the pagination.php
file name.
Twitter Bootstrap 2 – Codeigniter Pagination
$config['full_tag_open'] = '';
$config['first_link'] = '« First';
$config['first_tag_open'] = '
';
$config['first_tag_close'] = '';
$config['last_link'] = 'Last »';
$config['last_tag_open'] = '
';
$config['last_tag_close'] = '';
$config['next_link'] = 'Next →';
$config['next_tag_open'] = '
';
$config['next_tag_close'] = '';
$config['prev_link'] = '← Previous';
$config['prev_tag_open'] = '
';
$config['prev_tag_close'] = '';
$config['cur_tag_open'] = '
';
$config['cur_tag_close'] = '';
$config['num_tag_open'] = '
';
$config['num_tag_close'] = '';
Twitter Bootstrap 3 – Codeigniter Pagination
$config['full_tag_open'] = "
";
$config['num_tag_open'] = '
';
$config['num_tag_close'] = '';
$config['cur_tag_open'] = "
";
$config['cur_tag_close'] = "";
$config['next_tag_open'] = "
";
$config['next_tagl_close'] = "";
$config['prev_tag_open'] = "
";
$config['prev_tagl_close'] = "";
$config['first_tag_open'] = "
";
$config['first_tagl_close'] = "";
$config['last_tag_open'] = "
";
$config['last_tagl_close'] = "";
Related tutoirals