[eluser]scherman[/eluser]
Hi people. I use the Colin Williams's template for CI.
I red the user guide, but i didn't see how i can create another template.
I have the default template:
Code:
$template['default']['template'] = 'template.php';
$template['default']['regions'] = array(
'header',
'content',
'footer',
);
$template['default']['parser'] = 'parser';
$template['default']['parser_method'] = 'parse';
$template['default']['parse_template'] = FALSE;
And, when i want to render this template I do this in the controller:
Code:
$this->template->render();
But, for example, if i want another template for the backend, how can i do that?.
I want to do this in the controller:
Code:
$this->template->set_template('backend');
$this->template->render();
but i don't know what i have to do in the config/template.php
Can someone help me?