Lo he intentado creando mi propio helper:
Código PHP:
#$this->load->view('frontend/content',$data);
$this->load->helper('views');
views(['frontend/content'],$data);
views_helper.php
Código PHP:
function views($vistas,$data)
{
foreach ($vistas as $vista)
{
$this->load->view($vista,$data);
}
}
Me da este error:
Cita: A PHP Error was encountered
Severity: Error
Message: Using $this when not in object context
Filename: helpers/views_helper.php
Line Number: 7