Welcome Guest, Not a member yet? Register   Sign In
[solved]extending ci_input in ci2 ?
#1

[eluser]quasiperfect[/eluser]
hi
i tried extending ci_input in the tip version of ci2 but it doesn't seem to be working

i placed my file my_input.php in application\libraries
Code:
class MY_Input extends CI_Input {

    function MY_Input()
    {
        parent::CI_Input();
    }
    
    function _sanitize_globals()
    {
        echo 'test';
        exit;
    }
}

it should echo test and exit or i'm missing something ?
#2

[eluser]Phil Sturgeon[/eluser]
Input is a core class and core class extensions go into application/core.
#3

[eluser]quasiperfect[/eluser]
thanks Phil i need to change my glasses




Theme © iAndrew 2016 - Forum software by © MyBB