[eluser]illi[/eluser]
Hey!
I'm puzzled about one thing.
If I send this data to my view:
Code:
$data['country'] = 'UK';
$data['person'] = array('name'=>'John','hometown'=>'London');
//I'm only sending the person array to the view:
$this->load->view('main', $data['person']);
I can access the data like this in the view:
Code:
<?=$name?>
<?=$hometown?>
The thing is I can also access the country, even though I never passed it to the view:
Code:
<?=$country?>
<?=$name?>
<?=$hometown?>
Is this a feature or a bug? How is it possible?