Problem with form validation sets of Rules - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Problem with form validation sets of Rules (/showthread.php?tid=68605) |
Problem with form validation sets of Rules - hjjunior - 08-03-2017 I'm using `form_validation.php` in `application/config/` folder with subs arrays PHP Code: $config = array( My problem is that method `run()` don't validate using my rules, first I set the data (I know that the default is $_POST, but it's okay) PHP Code: $this->form_validation->set_data($_POST); I have extended the `Form_validation` but, everthing ok, I just added some new functions. PHP Code: class MY_Form_validation extends CI_Form_validation { And I'm loading in `config/autoload.php` PHP Code: $autoload['libraries'] = array('database','session','encryption','form_validation'); |