Welcome Guest, Not a member yet? Register   Sign In
Basic example of creating MY_Form_validation?
#2

[eluser]TheFuzzy0ne[/eluser]
If it's defined in your controller, then it's a callback, so you need to reflect that in your rule:
Code:
$this->form_validation->set_rules(‘financing’, ‘Financing Option’, ‘required|callback_financing_test’);

Alternatively, you could extend the validation library, and put your method in there. That way you won't need the 'callback_' prefix. I think you can also use helper functions too.


Messages In This Thread
Basic example of creating MY_Form_validation? - by El Forum - 05-29-2013, 11:55 AM
Basic example of creating MY_Form_validation? - by El Forum - 05-29-2013, 05:29 PM
Basic example of creating MY_Form_validation? - by El Forum - 05-30-2013, 04:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB