Welcome Guest, Not a member yet? Register   Sign In
Public variable used in views can do or not?
#2

Happy 2015 to you too! Smile

Think of your situation in terms of coupling. If the data for your view can only come from $this->tableData, your view will be tightly coupled to your class. That means your view will rely on your class to supply the data. That could be ok, unless you can imagine a situation where the data could come from a different source. In that case, it would be better to pass the data via an array.
Reply


Messages In This Thread
RE: Public variable used in views can do or not? - by RobertSF - 01-01-2015, 03:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB