Welcome Guest, Not a member yet? Register   Sign In
Poll: Do we need new solution for Form filtering and validation?
You do not have permission to vote in this poll.
Yes
53.33%
16 53.33%
No
36.67%
11 36.67%
maybe
10.00%
3 10.00%
Total 30 vote(s) 100%
* You voted for this item. [Show Results]

Input filtering and Form validation
#15

(04-08-2015, 09:31 AM)sv3tli0 Wrote: Form validation inside a model is not acceptable for me. You don't send requests to models to validate them, this is a joke I hope.

If your view of a model is that it is the central place that handles all business logic for the data, then validating within the model is perfectly fitting the MVC pattern. Typically, though, we seem to treat our Models as the Data Access layer which can be completely separate from the Model itself.

So, really, it's all terminology Smile
Reply


Messages In This Thread
Input filtering and Form validation - by sv3tli0 - 04-06-2015, 10:08 PM
RE: Input filtering and Form validation - by kilishan - 04-08-2015, 07:12 PM
RE: Input filtering and Form validation - by cjj - 04-09-2015, 09:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB