/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$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();
URL: http://codeigniter.com/user_guide/libraries/pagination.html