Hi there I am new to CI and I’ve just installed the Template Lib 1.4.1, and follow the document step by step, after I added two lines at the bottom of the file config/template.php:
$template[‘default’][‘regions’][‘header’] = array(‘content’ => array(’<h1>CI Rocks!</h1>’));
$template[‘default’][‘regions’][‘footer’] = array(‘content’ => array(’© Our Company Inc.’));
and when I run it from the browser I always get this Error:
An Error Was Encountered
The “header” region has already been defined.
I spend couple of days to check the code, but still can’t figure out what caused the problem, the above two lines just assign value to ‘header’ and ‘footer’ regions, not define them as they were already defined below:
$template[‘default’][‘regions’] = array(
‘header’,
‘title’,
‘content’,
‘sidebar’,
‘footer’,
);
can any expert here to give a comment? thanks.
