• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter\Validation\Validation::setRules() must be of the type array, string given

#3
processRules() function which inside System/Validation/validation.php 

I added this code and I fixed the problem. now validation work for  multiple variable  I sended like "name[]"


Code:
       if (is_array($value)) {
           foreach ($value as $k => $v) {
               $this->processRules($field, $label, $v, $rules, $data);
           }
           return true;
       }
Reply


Messages In This Thread
RE: CodeIgniter\Validation\Validation::setRules() must be of the type array, string given - by vebo - 01-25-2019, 05:45 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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