Welcome Guest, Not a member yet? Register   Sign In
extending validation
#6

[eluser]TheFuzzy0ne[/eluser]
I believe you also need to call on your function by enclosing your arguments within evaluation brackets. Like this:

Code:
$rules['collection']    = "required|callback__check_setbox[$collection]";

It may also be simpler for you to just throw your validation functions into a helper file, then you can load the helper file, and call on the function as if it were a native PHP function, and without having to extend the validation class.


Messages In This Thread
extending validation - by El Forum - 10-02-2008, 05:55 AM
extending validation - by El Forum - 10-02-2008, 06:01 AM
extending validation - by El Forum - 10-02-2008, 06:01 AM
extending validation - by El Forum - 10-02-2008, 06:15 AM
extending validation - by El Forum - 10-02-2008, 06:30 AM
extending validation - by El Forum - 10-02-2008, 06:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB