Welcome Guest, Not a member yet? Register   Sign In
Manually adding an error to form validation
#2

[eluser]Colin Williams[/eluser]
Errors correspond to fields, so if you want to use the validation class as your core error reporting class (bad idea IMO), then you need to setup "dummy" fields just to hold the errors. A better idea is to just pass custom errors from the controller to the view, and then echo them there. The output of validation_errors() can be a part of this, of course.


Messages In This Thread
Manually adding an error to form validation - by El Forum - 01-02-2010, 05:00 PM
Manually adding an error to form validation - by El Forum - 01-02-2010, 10:58 PM
Manually adding an error to form validation - by El Forum - 01-03-2010, 05:27 PM
Manually adding an error to form validation - by El Forum - 01-03-2010, 10:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB