Virajsinh

Pagination Style Codeigniter With Bootstrap 4

Dec 11th, 2019
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. // Bootstrap 4, work very fine. Pagination Style With Codeigniter
  2. $config['full_tag_open'] = '<ul class="pagination">';
  3. $config['full_tag_close'] = '</ul>';
  4. $config['attributes'] = ['class' => 'page-link'];
  5. $config['first_link'] = false;
  6. $config['last_link'] = false;
  7. $config['first_tag_open'] = '<li class="page-item">';
  8. $config['first_tag_close'] = '</li>';
  9. $config['prev_link'] = '&laquo';
  10. $config['prev_tag_open'] = '<li class="page-item">';
  11. $config['prev_tag_close'] = '</li>';
  12. $config['next_link'] = '&raquo';
  13. $config['next_tag_open'] = '<li class="page-item">';
  14. $config['next_tag_close'] = '</li>';
  15. $config['last_tag_open'] = '<li class="page-item">';
  16. $config['last_tag_close'] = '</li>';
  17. $config['cur_tag_open'] = '<li class="page-item active"><a href="#" class="page-link">';
  18. $config['cur_tag_close'] = '<span class="sr-only">(current)</span></a></li>';
  19. $config['num_tag_open'] = '<li class="page-item">';
  20. $config['num_tag_close'] = '</li>';
Add Comment
Please, Sign In to add comment