Welcome Guest, Not a member yet? Register   Sign In
Variable Scope
#1

Hi,

Can someone confirm that variables passed to a top view are available to a lower-down view?

e.g.

PHP Code:
$this->load->view('view1'$view1array);
$this->load->view('view2'$view2array); 

If I have a variable $test1 in $view1array, it will be available in view2?

If this is the case, is there a way/method to isolate the variables in $view1array from view2?
Reply


Messages In This Thread
Variable Scope - by paulkd - 04-30-2016, 02:06 AM
RE: Variable Scope - by InsiteFX - 04-30-2016, 03:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB