Codeigniter Pagination - Codeigniter

Codeigniter pagination

Snippet Code


  
Rate this page :
  [ 0 votes]

This code is used to display the pagination function in codeigniter.Use this code in controller where you have to display the pagination.

Use the below code in controller where you have to display the pagination: $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