[eluser]Flying Fish[/eluser]
I'm extending the controller class with MY_Controller and using this code:
Code:
$this->load->vars('head', $this->load->view('_inc/head', '', TRUE));
To create commmon template pieces like a header footer sidebar etc.
Can I pass data from a controller method to one of these vars so I can have a unique <title> on each page?
like in my controller, I would have
Code:
$data['title'] = "fish food";
$this->load->view('page_view', $data);
and in the view I have
Code:
<head>
<?=$head?>
</head