Use Pagination - Codeigniter

Use Pagination

Snippet Code


  
Rate this page :
  [ 0 votes]

This snippet is used to add pagination.Add the code to your controller where you want to display the pagination link.

$this->load->library('pagination'); $config['base_url'] = 'http://example.com/index.php/test/page/'; $config['total_rows'] = '200'; $config['per_page'] = '20'; $this->pagination->initialize($config); echo $this->pagination->create_links();

Tags


Ask Questions

Ask Question