I realized that after my first answer it all depends on which version of CI you are using, if you are using the latest version 3.0.0 or later, then you can make 1 small setting in the form validation file.
The form_validation.php file at the top of the set_rules () method on line 176
FROM:
if ($this->CI->input->method() !== 'post' && empty($this->validation_data)) { return $this; }
TO:
if ($this->CI->input->method() !== 'post' && $this->CI->input->method() !== 'put' && empty($this->validation_data)) { return $this; }
Let me know if this helped.
source share