Welcome Guest, Not a member yet? Register   Sign In
Extending validation class
#1

[eluser]msteudel[/eluser]
I'm extending the Form_validation class to add some of my own validation rules in. I was wondering when I load the library in my controller, do I use the original CI class, or call my own:

e.g. $this->load->library('form_validation');

or

$this->load->library('my_form_validation');
#2

[eluser]InsiteFX[/eluser]
You call the CI one, it will load yours as long as it begins with MY_

#3

[eluser]msteudel[/eluser]
Thanks




Theme © iAndrew 2016 - Forum software by © MyBB