CodeIgniter Forums

Full Version: How to Extend CI_DB_result
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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:
class MY_CI_DB_result extends CI_DB_result
    function __construct()

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.