• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Layout manager I think.

#2
[eluser]CroNiX[/eluser]
The 2nd parameter to load:view() must be an array just like you are doing when you are loading your header view.

Code:
public function index()
{
  $data=array(
    ‘id’=>23,
    ‘username’=>‘Administrator’
  );
  $data['string'] = $this->load->view(‘home/header’, $data, TRUE);
  $this->load->view(‘home’, $data);
}

Then in your "home.php" view file, just echo $string.


Messages In This Thread
Layout manager I think. - by El Forum - 06-11-2012, 07:38 PM
Layout manager I think. - by El Forum - 06-11-2012, 09:35 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.