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

[eluser]Colin Williams[/eluser]
I touched on this in my recent screencast, where I say I go back and forth about where the form should be defined. The ultimate goal is to have it defined in only one place. My argument for the Controller is one of ergonomics (if that makes sense) because I like to be able to tweak the entire form submission, validation, response without having to bounce between the Controller and the model. This is the same reason I don't like putting validation rules and fields in config files.

There are good arguments to be made for the model, of course, but having it in the controller just works for me (this coming from doing it all ways mentioned before)


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