valid-ip validation problem |
[eluser]MyBelovedPHP[/eluser]
I had trouble validating an ip-number while processing a post form in CodeIgniter 1.5.4. My code in the controller named Scan: Code: $this->load->library('validation'); Fatal error: Call to undefined method Scan::valid_ip() in ../codeigniter/system/libraries/Validation.php on line 493 Validation.php line 493 is part of function valid_ip($ip): Code: return $this->CI->valid_ip($ip); Code: return $this->CI->input->valid_ip($ip); I use PHP 5 and CodeIgniter 1.5.4. Anyone else these problems? Cheers, Janghou
[eluser]pr0digy[/eluser]
Yep, just ran into the same problem. What a convenient coincidence for me that you just solved this problem
[eluser]Michael Wales[/eluser]
Please submit a bug report so it can get fixed before the next version of CI is released.
[eluser]pr0digy[/eluser]
Also, the error message for this validation rule is missing.
[eluser]MyBelovedPHP[/eluser]
Bug reported, also missing error message mentioned
|
Welcome Guest, Not a member yet? Register Sign In |