Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB