Welcome Guest, Not a member yet? Register   Sign In
extending CI_form_validation don't work
#2

[eluser]TheFuzzy0ne[/eluser]
If you want to extend the form validation class, you need to call your file MY_Form_validation.php, and the class name should be MY_Form_validation.

You can do it your way too, but you'll need to do it like this:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

include BASEPATH.'libraries/Form_validation'.EXT;

class Lt_form_validation extends CI_Form_validation {
    ...

Then you'd need to load your library like this:
Code:
$this->load->library('lt_form_validation');

And then call the methods like this:
Code:
$this->lt_form_validation->clear_field_data();


Messages In This Thread
extending CI_form_validation don't work - by El Forum - 03-21-2013, 09:57 AM
extending CI_form_validation don't work - by El Forum - 03-21-2013, 12:25 PM
extending CI_form_validation don't work - by El Forum - 03-21-2013, 05:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB