[eluser]Uplift[/eluser]
I am in the process of learning CI but one thing i'm just not sure what it's for
Code:
class Welcome extends CI_Controller {
function index() {
parent::__construct();
$data['something'] = "something";
$this->load->view('includes/header', $data);
}
}
parent::__construct(); .. what it is this for, what is it actually doing?
I've removed it from my code and it still works fine. I've checked a few guides, most say it's needed but nothing more.