Hello, I have got below error when I create a pagination. Any one can hep me to resolve this error...
Model:
PHP Code:
<?php Class Pagination_model extends CI_model { public function __construct() { parent:: __construct(); $this->load->library('session'); }
function ambil_data($pagination,$offset) { return $this->db->get("item",$pagination,$offset)->result(); } }
Controller :
PHP Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Pagination extends CI_Controller {
public function __construct() { parent::__construct(); $this->load->model("Pagination_model"); $this->load->library('pagination'); } public function index($offset=3) { $data = $this->db->get("item");