• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View Variables

#1
[eluser]FREEZA[/eluser]
Hey,
i want to give my View an Array.

Code:
$this->load->view('includes/header', $this->data['lastLogins'] );

But my Viewer says: This variable is undefined. When i write only $this->data, then it works. why?


View:

Code:
<?php

foreach($lastLogins as $row){
//...
}

?>


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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