• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.