Welcome Guest, Not a member yet? Register   Sign In
The problem when extend the form_validation system library
#3

[eluser]imn.codeartist[/eluser]
Ok here what you have done wrong

Make file name in your application/library directory:
MY_Form_validation.php

then in your class


Code:
class MY_Form_validation extends CI_Form_validation

{
    function mytest()
    {
        echo 'this is test';
    }
}

in your controller

Code:
class Test extends Controller
{
    function Test()
    {
        parent::Controller();
        
    }
    
    function index()
    {
        echo 'hello';

        $this->load->library('my_form_validation');
        $this->my_form_validation->mytest();
    
    }

}

I bet this will work


Messages In This Thread
The problem when extend the form_validation system library - by El Forum - 10-15-2009, 03:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB