Welcome Guest, Not a member yet? Register   Sign In
pass values from controller to constructor
#1

[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


Messages In This Thread
pass values from controller to constructor - by El Forum - 11-28-2012, 06:52 AM
pass values from controller to constructor - by El Forum - 11-28-2012, 07:05 AM
pass values from controller to constructor - by El Forum - 11-28-2012, 08:05 AM
pass values from controller to constructor - by El Forum - 11-28-2012, 08:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB