Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] How to extend the DB_driver.php file
#1

[eluser]btwong[/eluser]
I am trying to extend the DB_driver.php file, but i am having very little luck. I am wanting to show more information on the error page (mainly some debug_backtrace() information), but i am having major difficulties.

I have tried to create my own loader (MY_Loader) and then load MY_DB_driver.php, but i am not getting the page loaded. i then changed the MY_Loader to MX_Loader, (as well as the MY_DB_driver.php to MX_DB_driver.php and then extend my MX_DB_driver.php using CI_DB_driver, i get the message:

Fatal error: Class 'CI_DB_driver' not found in MX_DB_driver.php

I also have the HMVC extension (HMVC Extension), and noticed that the Controller.php file has alot of extended functions and i have attempted to put the class MX_DB_driver at the bottom of the file (with the extends), to see if that works. But each time i get the same message.

Does anyone have ideas on what i can do?

Or is there a better way to do this?

thanks


Messages In This Thread
[SOLVED] How to extend the DB_driver.php file - by El Forum - 07-22-2010, 05:00 PM
[SOLVED] How to extend the DB_driver.php file - by El Forum - 07-22-2010, 06:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB