Welcome Guest, Not a member yet? Register   Sign In
avoiding redundancy
#2

[eluser]Randy Casburn[/eluser]
in the __controller() do..
Code:
$fourthviewdata = array('stuff'=>'my fourth view data');
$data['fourth_item_view']=$this->load->view('fourthitem',$fourthviewdata);

Then in 1,2,3 load your views with fourth

Code:
$this->load->view('firstview',$this->data);

then in your 1,2,3 views do
Code:
<?=$fourth_item_view?>

where you want the block

---

There you have it,

Randy


Messages In This Thread
avoiding redundancy - by El Forum - 08-21-2008, 07:32 AM
avoiding redundancy - by El Forum - 08-21-2008, 08:23 AM
avoiding redundancy - by El Forum - 08-21-2008, 08:50 AM
avoiding redundancy - by El Forum - 08-21-2008, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB