[eluser]ralf57[/eluser]
Hi all,
is it possible to disable extraction of variables when passing data to the view?
Provided this scenario:
Code:
$data['a_heavy_dataset'] = $first_set;
$data['another_heavy_dataset'] = $second_set;
$data['the_third_heavy_dataset'] = $third_set;
$this->load->view('fisrt_view', $data);
$this->load->view('second_view', $data);
$this->load->view('third_view', $data);
why in the world would i have to pass the same heavy $data array to each and every view just to get it extracted once the view is loaded?
I know i could use
Code:
$this->load->file('view', $data);
but this would mean mix 'view' and 'file' and i don't want to do that.
I think that another parameter to disable "extraction" would be useful.