Welcome Guest, Not a member yet? Register   Sign In
Loading Views: Efficiency question
#4

[eluser]Lone[/eluser]
And the biggest advantage is the ability to pass 'data' to that view eg.

Code:
$data['title'] = 'Best page';
$this->load->view('header',$data);

And the $data['title'] is auto-magically accessed as $title in the view Smile


Messages In This Thread
Loading Views: Efficiency question - by El Forum - 02-06-2008, 07:15 PM
Loading Views: Efficiency question - by El Forum - 02-06-2008, 10:26 PM
Loading Views: Efficiency question - by El Forum - 02-06-2008, 10:36 PM
Loading Views: Efficiency question - by El Forum - 02-06-2008, 10:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB