Welcome Guest, Not a member yet? Register   Sign In
Form validation not running callback function
#6

[eluser]Ckirk[/eluser]
not if it were a private function.

prefix it with "_" and it can't be called. eg.
Code:
private function _validate_username($username)

then call it like so (note the double underscore):
Code:
$this->form_validation->set_rules('username','Username','required|min_length[3]|max_length[16]|is_unique['.$this->table.'.username]|trim|xss_clean|callback__validate_username');



Messages In This Thread
Form validation not running callback function - by El Forum - 06-24-2013, 02:10 PM
Form validation not running callback function - by El Forum - 06-24-2013, 11:11 PM
Form validation not running callback function - by El Forum - 06-25-2013, 01:48 AM
Form validation not running callback function - by El Forum - 06-25-2013, 02:21 AM
Form validation not running callback function - by El Forum - 06-25-2013, 02:53 AM
Form validation not running callback function - by El Forum - 06-25-2013, 02:59 AM
Form validation not running callback function - by El Forum - 06-25-2013, 04:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB