07-06-2009, 08:56 AM
[eluser]TheFuzzy0ne[/eluser]
You could pass the data array in to the view loader:
...or you can load the $data array into the view scope with $this->load->vars().
The latter being the most efficient method to use.
You could pass the data array in to the view loader:
Code:
$this->load->view('contentleft', $data);
...or you can load the $data array into the view scope with $this->load->vars().
Code:
$data['login'] = $this->excute->loginname($username);
$this->load->vars($data);
$this->load->view('header');
$this->load->view('contentleft');
$this->load->view('home');
$this->load->view('footer');
The latter being the most efficient method to use.