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

[eluser]ch5i[/eluser]
Hello,

I know this has been asked several times already, but I have not been able to find any good examples for this the forums.

Basically I want to make controller functions available to more than one controller, eg. generic listings or forms, so the way to do it would be to create own models/libraries (I guess).

I would like to shift form validation to a model or library so that I do not have to duplicate code.

Are there any good examples (using CI's validation class)?
Should I use models or libraries for this?


Thanks for any hints!


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