Welcome Guest, Not a member yet? Register   Sign In
How is good way to use hooks
#2

[eluser]Unknown[/eluser]
I tend to just have my header and footer in two separate views, passing variables to them for meta data, title, css files etc.

An example could be:

$data = array(
'title' => 'Title',
'meta_keywords' => 'Keywords, go, here',
'meta_desc' => 'Description is here',
'css' => 'css.css',
'js' => 'js.js'
);

$this->load->view('page_head', $data);
$this->load->view('index');
$this->load->view('page_foot');


Messages In This Thread
How is good way to use hooks - by El Forum - 04-26-2010, 05:43 AM
How is good way to use hooks - by El Forum - 04-26-2010, 08:03 AM
How is good way to use hooks - by El Forum - 04-26-2010, 08:13 AM
How is good way to use hooks - by El Forum - 04-26-2010, 08:39 AM
How is good way to use hooks - by El Forum - 04-26-2010, 08:58 AM
How is good way to use hooks - by El Forum - 04-26-2010, 09:18 AM
How is good way to use hooks - by El Forum - 04-26-2010, 11:58 PM
How is good way to use hooks - by El Forum - 04-27-2010, 12:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB