Welcome Guest, Not a member yet? Register   Sign In
basic but....
#12

[eluser]xwero[/eluser]
If you have a table with a lot of fields chances are there is going to be more than one form that alters another slice of the fields. So if i understand you well you would create a method for each view in which case you couple the model methods to a certain view file making the methods less reusable?
And what would you do with data that is required on one form but not on another or that has to match another field in on form and not on another?

I think there a several scenario's where it's beneficial for the model code not to have the validation in the model methods but in a separate layer, like the Akelos solution if i'm not mistaken or in the controller. This is why i made the compromise.


Messages In This Thread
basic but.... - by El Forum - 03-11-2008, 11:46 AM
basic but.... - by El Forum - 03-11-2008, 11:57 AM
basic but.... - by El Forum - 03-11-2008, 04:24 PM
basic but.... - by El Forum - 03-12-2008, 03:30 AM
basic but.... - by El Forum - 03-12-2008, 03:41 AM
basic but.... - by El Forum - 03-12-2008, 04:36 AM
basic but.... - by El Forum - 03-12-2008, 04:39 AM
basic but.... - by El Forum - 03-12-2008, 05:00 AM
basic but.... - by El Forum - 03-12-2008, 06:30 AM
basic but.... - by El Forum - 03-12-2008, 06:55 AM
basic but.... - by El Forum - 03-13-2008, 02:25 AM
basic but.... - by El Forum - 03-13-2008, 02:58 AM
basic but.... - by El Forum - 03-13-2008, 04:11 AM
basic but.... - by El Forum - 03-13-2008, 05:04 AM
basic but.... - by El Forum - 03-13-2008, 06:13 AM
basic but.... - by El Forum - 03-13-2008, 06:41 AM
basic but.... - by El Forum - 03-13-2008, 07:12 AM
basic but.... - by El Forum - 03-13-2008, 02:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB