Welcome Guest, Not a member yet? Register   Sign In
Styles not fully applying when loading nested view
#1

[eluser]zulubanslee[/eluser]
I want to modularize a little, so my menu section is one view and my sidebar is another and the footer another. I wanted to do this:

Here is my controller code:
Code:
$data['header'] = $this->load->view('header');
$data['sidebar']= $this->load->view('sidebar');
$data['footer'] = $this->load->view('footer');
$this->load->view('main_view');

Then in the view I have
Code:
<!--html-->
<?php echo $header;?>
<!--more  html-->
<?php echo $sidebar;?>
<!--more html-->
<?php echo $footer;?>

It prints, but see this:

http://i.imgur.com/W5sqo.jpg

I left out the sidebar and footer because it's more of a mess.

With the code in one file it's fine.


Messages In This Thread
Styles not fully applying when loading nested view - by El Forum - 04-22-2011, 07:05 PM
Styles not fully applying when loading nested view - by El Forum - 04-22-2011, 08:07 PM
Styles not fully applying when loading nested view - by El Forum - 04-22-2011, 08:25 PM
Styles not fully applying when loading nested view - by El Forum - 04-22-2011, 08:44 PM
Styles not fully applying when loading nested view - by El Forum - 04-22-2011, 08:51 PM
Styles not fully applying when loading nested view - by El Forum - 04-22-2011, 08:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB