Codeigniter Pagination Example Using Ul Li In Controller

[Solved] Codeigniter Pagination Example Using Ul Li In Controller | Php Frameworks Codeigniter - Code Explorer | yomemimo.com
Question : pagination in codeigniter with example

Answered by : ankur-prajapati

// Controller End
$config = array();
$config["base_url"] = base_url() . "index.php/StudentPagination_Controller/index";
$config["total_rows"] = $this->StudentPagination_Model->get_count();
$config["per_page"] = 10;
$config["uri_segment"] = 3;
$this->pagination->initialize($config);
$page = ($this->uri->segment(3))? $this->uri->segment(3) : 0;
$data["links"] = $this->pagination->create_links();
$data['student'] = $this->StudentPagination_Model->get_students($config["per_page"], $page);
$this->load->view('pagination', $data);

Source : https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwik2pylgurvAhX34zgGHUxTAxYQFjADegQIBxAD&url=https%3A%2F%2Fwww.phptpoint.com%2Fcodeigniter-pagination%2F&usg=AOvVaw0ZPYwUPlWqqkUHxvXnDKwt | Last Update : Tue, 13 Apr 21

Answers related to codeigniter pagination example using ul li in controller

Code Explorer Popular Question For Php Frameworks Codeigniter