• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Isset Form Validation rules

#1
In Codeigniter 3.0.0
I think in file system\libraries\Form_validation.php line 637, the line should be:
Code:
$type = in_array('isset', $rules) ? 'isset' : 'required';
instead of
Code:
$type = in_array('required', $rules) ? 'required' : 'isset';
so, if we want to check whether checkbox is checked or not, we set the rule: 'required|isset'
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.