Welcome Guest, Not a member yet? Register   Sign In
Variable in all functions in Controller
#3

[eluser]Jareish[/eluser]
Hi,

thanks mate, this seems solid Smile I tried to declare a variable using global $message in the class, but got errors. I shall read more about PHP visibility Smile You just made my code life easier and my code smaller. Now I can have 1 function to load a view, and other functions that alter that view without touching the core variables Big Grin

php scoping is one of the biggest issues I had to deal with (I find it alot easier in AS3 for some reason).

Cheers


Messages In This Thread
Variable in all functions in Controller - by El Forum - 11-25-2010, 04:41 AM
Variable in all functions in Controller - by El Forum - 11-25-2010, 06:12 AM
Variable in all functions in Controller - by El Forum - 11-25-2010, 06:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB