Code Igniter Pagination


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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();

URL: http://codeigniter.com/user_guide/libraries/pagination.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.