I have a view like this:
// Main view
$data['foo'] = "bar";
$this->load->view('thing1', $data);
$this->load->view('thing2');
$this->load->view('thing3');
// Thing 1
echo $foo // gives "bar"
// Thing 2
echo $foo // gives "bar"
// Thing 1
echo $foo // gives "bar"
$foo = null;
// Main view
$data['foo'] = "bar";
$this->load->view('thing1', $data);
$data = null;
$this->load->view('thing2', null);
$this->load->view('thing3');
]
// Thing 2
echo $foo // gives "bar"
Caching is off AFAIK (I haven’t explicitly turned it on anywhere). Can anyone tell me how I might reset the data array?
