I am using code igniter 2.0.3.
When I try loading form_validation in my controller $this->load->library('form_validation'), I get an error message:
Fatal error: Call to a member function set_rules() on a non-object in D:\Installation\xampp\htdocs\MyApp\application\controllers\login.php on line 44
On line 44 in login.php, this is what I have:
$this->form_validation->set_rules('name', 'Name', 'trim|required');
When I load form_validation in autoload.php, there are no errors.
Why is this happening?