Welcome Guest, Not a member yet? Register   Sign In
Is there a better way to set these class vars after a query?
#6

[eluser]louisl[/eluser]
[quote author="meigwilym" date="1328110391"]
Do you really need to put the data in properties?

Explain your need to use properties, otherwise use the suggested.
[/quote]

A. Typically I pre-populate form data using class properties and also use those properties for insert/update and for the view. If it's all in one model class as defined properties I find it's easy to read and debug any issues.

Thanks for the suggestions so far. The reason I asked the initial question is because sometimes I feel I am writing too much code.


Messages In This Thread
Is there a better way to set these class vars after a query? - by El Forum - 02-01-2012, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB