Welcome Guest, Not a member yet? Register   Sign In
Disabling extraction in views
#1

[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.


Messages In This Thread
Disabling extraction in views - by El Forum - 12-22-2008, 06:31 AM
Disabling extraction in views - by El Forum - 12-22-2008, 07:03 AM
Disabling extraction in views - by El Forum - 12-22-2008, 07:40 AM
Disabling extraction in views - by El Forum - 12-22-2008, 12:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB