Form Validation - Error Message for Anonoymous Function |
How do I set an error message for an anonymous function used to validate a field when using the form validation class?
Code: PHP Code: $this->form_validation->set_rules('referral-code', 'Referral Code',
You need to wrap it in another array and specify a message string name as the first parameter.
PHP Code: $this->form_validation->set_rules( |
Welcome Guest, Not a member yet? Register Sign In |