Welcome Guest, Not a member yet? Register   Sign In
CI form validation in models/libraries?
#3

[eluser]ch5i[/eluser]
Thank you, xwero.

I found the same thread maybe 5mins after posting - typical Smile

So does this say that CI's validation class is not actually suited for inclusion in models?
Sorry if I'm asking something obvious...

Wouldn't it make sense to store validation rules for every database field the user can modify (in principle)?
The user model would for instance contain a collection of field class instances which extend a DBtableField class which in turn would have a built in validation function.

Mindless ramblings...


Messages In This Thread
CI form validation in models/libraries? - by El Forum - 03-13-2008, 08:06 AM
CI form validation in models/libraries? - by El Forum - 03-13-2008, 08:08 AM
CI form validation in models/libraries? - by El Forum - 03-13-2008, 09:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB