I have the Login_controller:
if ($query->num_rows() == 1){
$usuario = $query->row();
$this->load->library('../controllers/Dashboard_controller');
}
And I have the Dashboard_Controller:
public function index(){
$this->load->view("dashboard/Dashboard_view");
}
}
But, I got a message error:
A PHP Error was encountered Severity: Notice Message: Undefined property: Dashboard_controller::$load Filename: libraries/Form_validation.php Line Number: 147 Backtrace: File: C:\xampp\htdocs\local\acjum1\application\controllers\Login_controller.php Line: 34 Function: library File: C:\xampp\htdocs\local\acjum1\index.php Line: 315 Function: require_once
An uncaught Exception was encountered Type: Error Message: Call to a member function helper() on null Filename: C:\xampp\htdocs\local\acjum1\system\libraries\Form_validation.php Line Number: 147 Backtrace: File: C:\xampp\htdocs\local\acjum1\application\controllers\Login_controller.php Line: 34 Function: library File: C:\xampp\htdocs\local\acjum1\index.php Line: 315 Function: require_once
What am I doing wrong?