Welcome Guest, Not a member yet? Register   Sign In
Need help changing the form_validation library
#4

[eluser]Aken[/eluser]
You would need to store your array of error messages depending on field and rule names. Then, whenever error messages are set, you'd need to check that array to see if a custom message has been specified. This would involve redefining various methods from CI_Form_validation into MY_Form_validation, and then either duplicating most of their code, or using parent::method() if possible. Start there, and post if you have any specific issues.


Messages In This Thread
Need help changing the form_validation library - by El Forum - 11-12-2012, 03:52 PM
Need help changing the form_validation library - by El Forum - 11-12-2012, 07:05 PM
Need help changing the form_validation library - by El Forum - 11-12-2012, 07:56 PM
Need help changing the form_validation library - by El Forum - 11-12-2012, 09:23 PM
Need help changing the form_validation library - by El Forum - 11-12-2012, 09:49 PM
Need help changing the form_validation library - by El Forum - 11-13-2012, 08:18 PM
Need help changing the form_validation library - by El Forum - 11-13-2012, 11:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB