la declaré así
Código PHP:
function index()
{
$data = array('title' => 'categorias', 'css_files' => 'main.css', 'main_content' => 'categorias/categorias_v', $output);
$this->load->view('template', $data);
}
y sale un warning
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: categorias/categorias_v.php
Line Number: 2