CodeIgniter

How to set the pagination in CodeIgniter?

In this i would like to explain about how to set the pagination in codeigniter framework. See the code below: to set the pagination in CodeIgniter In the controller: add the below code  $this->load->library(’pagination’);  $config[’total_rows’] = $this->db->count_all(’code_image’);  $config[’per_page’] = ‘3’;  $config[’full_tag_open’] = ‘<p>’;  $config[’full_tag_close’] = ‘</p>’;  $config[’base_url’] = base_url().’upload/list_images/’;  $this->pagination->initialize($config);  //echo base_url();  $this->load->model(’code_image’);  $data[’images’] = …

Continue Reading