[eluser]briskdeveloper[/eluser]
Hi,
Ok following are my code,
application/config/template.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
$template['active_group'] = 'default';
$template['default']['template'] = 'template';
$template['default']['regions'] = array(
'header',
'title',
'content',
'sidebar',
'footer',
);
$template['default']['regions']['header'] = array('content' => array('<h1>CI Rocks!</h1>'));
$template['default']['regions']['footer'] = array('content' => array('<p id="copyright">© Our Company Inc.</p>'));
application/controllers/temp.php
class Temp extends Controller {
function Temp()
{
parent::Controller();
}
function index()
{
$this->template->load();
}
I have also autoloaded the library file i'e template.php
When I run its showing the following error,
An Error Was Encountered
Your template.php file does not appear to contain a valid configuration array.
Thanks,
Shakeeb