Welcome Guest, Not a member yet? Register   Sign In
access controller variables in a model
#5

[eluser]Aken[/eluser]
It's still not a great idea to have models require properties from the controller, since models are supposed to be "universal" of sorts, and not dependent on other things. What if you create a new controller and forget to create the properties?

Best to either pass those variables as parameters, or set up setter/getter methods for storing properties in your model.


Messages In This Thread
access controller variables in a model - by El Forum - 02-07-2012, 08:33 AM
access controller variables in a model - by El Forum - 02-07-2012, 01:38 PM
access controller variables in a model - by El Forum - 02-08-2012, 08:42 AM
access controller variables in a model - by El Forum - 08-21-2012, 12:57 PM
access controller variables in a model - by El Forum - 08-21-2012, 02:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB