You should instead create a private array property
private mydata = array();
In your _homepage
method, contents should be:
private function _homepage(){
// ...
// target your class scope property
$this->mydata['articles'] = $this->Mdl_Articles->get();
and change your all $data
variable to $this->mydata
in index
method and pass it to the view like this:
$this->load->view('_main_layout', $this->mydata);