Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

Validation errors

$
0
0
Why doesn't this throw any error, and always silently fails? Why is the third parameter optional?

PHP Code:
$this->form_validation->set_rules('field_name''some_rule|another_rule');
if(
$this->form_validation->run()) {
 
 //never executes
} else {
 
 //no errors generated
 
 echo validation_errors();


Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>