Calling index() on form validation failure |
10-26-2016, 07:08 AM
(This post was last modified: 10-26-2016, 08:18 AM by salain. Edit Reason: Syntax error )
I have tried with a validation function in a helper
You just have change the call to your function. From this PHP Code: $this->form_validation->set_rules('f_eventname', 'Event Name', 'required|trim|min_length[3]|max_length[100]|callback_customAlpha'); to PHP Code: $this->form_validation->set_rules('f_eventname', 'Event Name', Your custom validation function is in an array to allow to set the error message. A good decision is based on knowledge and not on numbers. - Plato
|
Welcome Guest, Not a member yet? Register Sign In |