Hey guys i am wondering why i always get Unable to locate the specified class: Session.php
I'm trying to do is I have a controller and I want to inherit the other controller but when i call the method of the inherit controller it returns Unable to locate the specified class: Session.php
E.G
Controller A
class controller_a extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model("model");
}
public function methodA () {
//the pagination codes
}
}
Controller B
include_once (dirname(__FILE__) . "/controller_a.php");
class controller_b extends controller_a {
public function __construct() {
parent::__construct();
$this->load->library("session");
}
public function methodB() {
$a = new controller_a();
$this->load->view("head");
$this->load->view("navbar");
$a->methodA();
$this->load->view("footer");
}
}
I don't why it keeps returning the error. Can anyone help me in this problem? Thanks.