Welcome Guest, Not a member yet? Register   Sign In
2 ways of defining own rules in validation?
#2

[eluser]dejitaru[/eluser]
The first method using a callback, is a function on the controller itself and the second one is extending the form_validation library. I don't know if there is a rule on using one or another. If I use only 1 specific validation rule on one controller, I use a callback but if I have a rule that many controllers use, I extend the library.


Messages In This Thread
2 ways of defining own rules in validation? - by El Forum - 04-17-2010, 02:28 PM
2 ways of defining own rules in validation? - by El Forum - 04-17-2010, 03:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB