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

[eluser]CroNiX[/eluser]
You can just use $this->timezone_drop directly in your view without explicitly passing it, since it's a class property and globally available to anything from within that controller. No need for taking up extra memory within a separate variable.


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