I want to use pagination in my index page. So I used like following code in my project
class Transactions extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->model(array("Transaction"));
}
public function index()
{
$cond = array();
if($_POST){
$cond = $this->input->post();
}
// load Pagination library
$this->load->library('pagination');
It's work fine in my localhost, but when I upload this in live server, here show the following error..
An Error Was Encountered Unable to load the requested class: Pagination
- php v7.2
- codeigniter v3.1.11
Please anyone help me how to solve this problem.