Welcome Guest, Not a member yet? Register   Sign In
Form Validation: Custom Error Messages based on Field?
#4

[eluser]skunkbad[/eluser]
You can call a method from the form validation class within your callback, but you should look at the methods in the form validation class and see the arguments they expect. Because the current form validation class doesn't (yet) limit the scope of the methods, you would simple access them by :

$this->form_validation->method_name($arg , $arg, ...);

All of the methods return false or the original value.


Messages In This Thread
Form Validation: Custom Error Messages based on Field? - by El Forum - 04-16-2010, 08:48 AM
Form Validation: Custom Error Messages based on Field? - by El Forum - 04-16-2010, 05:41 PM
Form Validation: Custom Error Messages based on Field? - by El Forum - 04-16-2010, 10:43 PM
Form Validation: Custom Error Messages based on Field? - by El Forum - 04-16-2010, 11:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB