[eluser]livewirerules[/eluser]
im trying to set a title and meta description for each function in my controller and the below doesnt seem to be working.
below is the code im using
Code:
function __construct()
{
parent::__construct();
$info['title'] = 'No title';
$info['descrip'] = 'No description';
$this->load->view('include/header',$info);
}
function be_cool()
{
$info['title'] = 'This is the be cool title';
$info['descrip'] = 'This is the be cool description';
$info['body'] = 'template/becool';
$this->load->view('include/template',$info);
}
function be_hot()
{
$info['title'] = 'This is the be hot title';
$info['descrip'] = 'This is the be cool description';
$info['body'] = 'template/behot';
$this->load->view('include/template',$info);
}
can someone please help he how to get this working