[eluser]xbonez[/eluser]
If I pass data to my view like this, it works just fine:
Code:
$data['errors'] = array(
'foo' => 'bar'
);
$this->load->view('register',$data);
However, if I call another view before calling the 'register' view, I cannot access the data in the view:
Code:
$data['errors'] = array(
'foo' => 'bar'
);
$this->load->view('fragments/header',array('title' => 'Register a New Accout'));
$this->load->view('register',$data);
In both cases, my register.php view looks like this:
Code:
<?php echo $errors['foo']; ?>
Am I missing something, doing something wrong, or is this a bug?