[eluser]BlueGemini[/eluser]
[quote author="theprodigy" date="1263899986"]Try storing your views into variables that you pass to your views
Code:
$data['div1'] = $this->load->view('mydiv1', '', true);
$data['div2'] = $this->load->view('mydiv2', '', true);
$this->load->view('layout',$data);
then just output your variables in the layout.php view
Code:
<html>
<head>
<title>My Layout</title>
</head>
<body>
<div id="div1">
<?php echo $div1; ?>
</div>
<div id="div2">
<?php echo $div2; ?>
</div>
</body>
</html>
Is that more of what you are looking for?[/quote]
Hey, it work. :cheese: didn't thought about that... :-P
One more question. What is the difference of having a TRUE?
Code:
$data['div1'] = $this->load->view('mydiv1', '', true);
Thank you very much! ;-)