this is the error
A PHP Error was encountered
Severity: 8192
Message: ctype_digit(): Argument of type null will be interpreted as string in the future
Filename: libraries/Pagination.php
Line Number: 526
Backtrace:
File: C:xampphtdocsci_paginationapplicationcontrollerscountry.php
Line: 25
Function: create_links
File: C:xampphtdocsci_paginationindex.php
Line: 315
Function: require_once
controller
country.php
load->library(‘pagination’);
$this->load->database();
$this->load->model(‘country_model’);
}
public function index() {
$config = array();
$config[“base_url”] = site_url(“country/index”);
$config[“total_rows”] = $this->country_model->record_count();
$config[“per_page”] = 3;
$config[“uri_segment”] = 3;
$this->pagination->initialize($config);
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
$data[“countries”] = $this->country_model->fetch_countries($config[“per_page”], $page);
$data[“links”] = $this->pagination->create_links();
$this->load->view(‘country_list’, $data);
}
}
ABINAYA V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.