Welcome Guest, Not a member yet? Register   Sign In
Redundant Code
#2

[eluser]bretticus[/eluser]
It is probably bad practice to validate users in your model period.

Why not validate in the controller before you call the model method like in your first example?


Messages In This Thread
Redundant Code - by El Forum - 10-16-2009, 05:46 PM
Redundant Code - by El Forum - 10-17-2009, 01:07 AM
Redundant Code - by El Forum - 10-17-2009, 01:27 AM
Redundant Code - by El Forum - 10-17-2009, 09:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB