Welcome Guest, Not a member yet? Register   Sign In
Way to have validation code in the model?
#6

[eluser]sikkle[/eluser]
Adamp1 : no no, in fact this is how it's suppose to be handled in real MVC. Most advanced framework will do validation into model, because it's not logic to write validation stuff two time, by example, edit, create.

I mean the validation class just work great, but it's hard to find an elegant way to DRY the code with it.


Messages In This Thread
Way to have validation code in the model? - by El Forum - 03-01-2008, 09:25 PM
Way to have validation code in the model? - by El Forum - 03-01-2008, 10:06 PM
Way to have validation code in the model? - by El Forum - 03-01-2008, 11:19 PM
Way to have validation code in the model? - by El Forum - 03-03-2008, 06:55 AM
Way to have validation code in the model? - by El Forum - 03-03-2008, 07:13 AM
Way to have validation code in the model? - by El Forum - 03-03-2008, 07:18 AM
Way to have validation code in the model? - by El Forum - 03-03-2008, 07:38 AM
Way to have validation code in the model? - by El Forum - 03-03-2008, 07:47 AM
Way to have validation code in the model? - by El Forum - 03-03-2008, 07:49 AM
Way to have validation code in the model? - by El Forum - 03-03-2008, 08:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB