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

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?


For anyone that cares, i just created my own Exceptions file (MY_Exceptions.php), and edited the show_error function.

That sorted it for me.

Theme © iAndrew 2016 - Forum software by © MyBB