Welcome Guest, Not a member yet? Register   Sign In
the best practice of writing active record
#2

[eluser]toopay[/eluser]
[quote author="wolfgangerstorm" date="1306488402"]
I used this kind of function because I only need to access one function and make sure that only one query is executed everytime...[/quote]

Your code is indeed weird, but if it can serve your (unique) needs, then go with them. I have been see more bizzare structure then yours, and as long as they work as expected, then it fine(IMO). I just suggest you, to only refactor it(to make them clean), not change the behaviour.


Messages In This Thread
the best practice of writing active record - by El Forum - 05-26-2011, 10:26 PM
the best practice of writing active record - by El Forum - 05-26-2011, 10:59 PM
the best practice of writing active record - by El Forum - 05-26-2011, 11:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB