Welcome Guest, Not a member yet? Register   Sign In
Templating question?
#4

[eluser]Sean Gates[/eluser]
Your header view should not need its own controller. You should be able to pass it the information it needs as it is loaded. A la:

Code:
$this->load->view("my_header_view", $data);

... where $data is an array of data, scaled any way you like. So, if you want to send it other views you could do something like:

Code:
$data['header_include'] = $this->load->view("my_header_include_view", NULL, TRUE);
$this->load->view("my_header_view", $data);


Messages In This Thread
Templating question? - by El Forum - 01-18-2010, 09:51 AM
Templating question? - by El Forum - 01-18-2010, 10:04 AM
Templating question? - by El Forum - 01-18-2010, 11:27 AM
Templating question? - by El Forum - 01-18-2010, 04:00 PM
Templating question? - by El Forum - 01-24-2010, 09:33 PM
Templating question? - by El Forum - 01-24-2010, 10:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB