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

[eluser]InsiteFX[/eluser]
Your problem is that you are not passing the $data array to the view!
There is 2 different ways of doing this...
Code:
// First
$data['header'] = $this->load->view('header');
$data['sidebar']= $this->load->view('sidebar');
$data['footer'] = $this->load->view('footer');

$this->load->view('main_view', $data);

Code:
// Second - Which makes $data global.
$data['header'] = $this->load->view('header');
$data['sidebar']= $this->load->view('sidebar');
$data['footer'] = $this->load->view('footer');

$this->load->vars($data);

$this->load->view('main_view');

InsiteFX


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