Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 6, 2018 9:21 AM
Views: 16
  1. $this->load->library('pagination');
  2.  
  3. $config['base_url'] = 'http://example.com/index.php/test/page/';
  4. $config['total_rows'] = 200;
  5. $config['per_page'] = 20;
  6.  
  7. $this->pagination->initialize($config);
  8.  
  9. echo $this->pagination->create_links();
  10. //http://www.codeigniter.com/user_guide/libraries/pagination.html