Welcome Guest, Not a member yet? Register   Sign In
How to Extend CI_DB_result
#1

[eluser]Medikal[/eluser]
Hey, I'm specifically looking to extend the CI_DB_result class and I treated it as extending a core class. However following that did not seem to do anything.

My prefix is set to "MY_".

I created a file in application/core named "MY_CI_DB_result.php" and my code is as follows:
Code:
class MY_CI_DB_result extends CI_DB_result
{
    function __construct()
    {
        parent::__construct();
        die("here");
    }
}

Seeing as how I know this is loaded all over the place and none of my pages die with the "here" message I specified, I know it isn't loading my class as well.

Any ideas, perhaps it's different for this, or not able to be done without hacking the core code. Rather do it this way instead of hooks since I don't think what I'm looking to do can be accomplished with them.

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB