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
#10

(04-08-2015, 08:12 AM)sv3tli0 Wrote: interesting. . So you think that filling controller with form rules and callback methods is right ?

No, that will make for fat controllers. But like I suggested before. You could create a class for a form if you'd like and import that class. You could also push validation to the model.

Like IncludeBeer said before, the form validation in CI is pretty good right now. There could be some improvements (some additional rules would be nice), but you can already extend your form validation class for that. 
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 albertleao - 04-08-2015, 09:11 AM
RE: Input filtering and Form validation - by cjj - 04-09-2015, 09:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB