Welcome Guest, Not a member yet? Register   Sign In
Setting variables to be used controller wide.
#2

[eluser]LuckyFella73[/eluser]
The contructor is the right place. Just write
Code:
$this->timezone_drop = array();

// instead of:
$timezone_drop = array();

In your methods use the same way:
Code:
$my_array = $this->timezone_drop;


Messages In This Thread
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 01:11 PM
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 02:33 PM
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 02:45 PM
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 02:58 PM
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 03:50 PM
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 03:58 PM
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 04:02 PM
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 04:15 PM
Setting variables to be used controller wide. - by El Forum - 06-19-2012, 05:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB