Welcome Guest, Not a member yet? Register   Sign In
how extends CI database class?
#1

[eluser]vps4[/eluser]
this is wrong

Code:
class MY_DB extends CI_DB {
    function MY_DB() {
        parent::CI_DB();
    }

    function get_var() {
        die('....');
    }
}

how extends?
#2

[eluser]xwero[/eluser]
The database class can't be extended in the normal way. You can create a new driver directory and point to that directory in the config/database.php but for the the files directly under the database directory there is no other option then to alter them.
#3

[eluser]wiredesignz[/eluser]
The database drivers can be extended, please check the wiki for a contribution by rafsoaken

http://codeigniter.com/wiki/Extending_Database_Drivers/
#4

[eluser]vps4[/eluser]
[quote author="wiredesignz" date="1212766169"]The database drivers can be extended, please check the wiki for a contribution by rafsoaken

http://codeigniter.com/wiki/Extending_Database_Drivers/[/quote]

baby, you r so strong, thanks
#5

[eluser]Michael Wales[/eluser]
Quote:baby, you r so strong, thanks

Some of these questions and comments are getting out of hand... :ohh:
#6

[eluser]xwero[/eluser]
[quote author="Michael Wales" date="1212785893"]
Quote:baby, you r so strong, thanks

Some of these questions and comments are getting out of hand... :ohh:[/quote]
It's not worse than dropping scissors on your keyboard :coolsmirk:




Theme © iAndrew 2016 - Forum software by © MyBB