Welcome Guest, Not a member yet? Register   Sign In
Why use strings when doing rules for Form Validation instead of flags
#4

[eluser]bretticus[/eluser]
Understandable. I thought it was an interesting way to handle validation myself. I have been using CI for only a year or so now. At first I thought it was "cludgy", but then the whole chaining of rules together in one call seems like a very intuitive way to stack rules together. I am curious how the "other frameworks" you mentioned handle validation rules.

But yes, CI has one validation class that it "ships" with. One thing I really like about CI is that you can very easily build your own validation (or anything else) class (and I'm sure this is a hallmark of pretty much all other frameworks too.) I've only seen this string-based parameter approach used with the Form_validation class if that answers your question.


Messages In This Thread
Why use strings when doing rules for Form Validation instead of flags - by El Forum - 02-09-2010, 12:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB