Welcome Guest, Not a member yet? Register   Sign In
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){
//...
}

?>




Theme © iAndrew 2016 - Forum software by © MyBB