I have placed this class file called \'My_Form_validation.php\' into \'application/core\' and I have also tried placing it in \'application/libraries\'.
In my contro
Because you're extending a CodeIgniter library and not a core component, you want to place that in application/libraries
(not application/core
).
And of course, don't forget to load the Form_validation
library within your controller code.
$this->load->library('form_validation');
Other things to check:
MY_Form_validation.php
loads while My_Form_validation.php
won't)MY_Form_validation
extends CI_Form_validation
)Reference material: