Welcome Guest, Not a member yet? Register   Sign In
Custom Validation Class
#2

[eluser]WanWizard[/eluser]
Correct.

The form validation library expects callbacks the be in the current controller.
In your example of callback_validate_active, it checks if $this->validate_active() exists before calling it. If not, the rule will be ignored.


Messages In This Thread
Custom Validation Class - by El Forum - 06-02-2010, 02:33 PM
Custom Validation Class - by El Forum - 06-02-2010, 03:20 PM
Custom Validation Class - by El Forum - 06-03-2010, 03:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB