Welcome Guest, Not a member yet? Register   Sign In
Validation+Filtering
#6

[eluser]RESPECT[/eluser]
Thanks! I agree 100% w/ validation being in the controller

@Colin
I meant saying if you don't put the validation at the database/model level you would need to repeat unneeded code for each call using the model. So if you include a basic type of validation+filtering at the model level you would adhere to the DRY principle more. As opposed to having a repeating pattern of validation+filtering for each database call...

Hope you get what i mean, by the way im referring to the [D]ont [R]epeat [Y]ourself principal...just encase you think I have some other obscure principle in mindSmile


Messages In This Thread
Validation+Filtering - by El Forum - 09-25-2008, 06:04 PM
Validation+Filtering - by El Forum - 09-25-2008, 06:32 PM
Validation+Filtering - by El Forum - 09-25-2008, 07:05 PM
Validation+Filtering - by El Forum - 09-25-2008, 10:13 PM
Validation+Filtering - by El Forum - 09-25-2008, 11:40 PM
Validation+Filtering - by El Forum - 09-26-2008, 10:10 PM
Validation+Filtering - by El Forum - 09-26-2008, 11:29 PM
Validation+Filtering - by El Forum - 09-27-2008, 03:22 PM
Validation+Filtering - by El Forum - 09-28-2008, 05:16 PM
Validation+Filtering - by El Forum - 09-29-2008, 02:35 PM
Validation+Filtering - by El Forum - 09-29-2008, 02:52 PM
Validation+Filtering - by El Forum - 09-29-2008, 09:46 PM
Validation+Filtering - by El Forum - 09-30-2008, 09:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB