protected static function initDB() {
        $dbConfig = static::getConfig('db', static::getServer());
        static::$db = new Connection($dbConfig['dsn'], $dbConfig['user'], $dbConfig['password'], $dbConfig['options']);
        static::$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

        if (!empty($dbConfig['tablePrefix']))
            static::$db->setTablePrefix($dbConfig['tablePrefix']);
    }
protected static function initDB() {
        $dbConfig = static::getConfig('db', static::getServer());
        static::$db = new Connection($dbConfig['dsn'], $dbConfig['user'], $dbConfig['password'], $dbConfig['options']);
        static::$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

        if (!empty($dbConfig['tablePrefix']))
            static::$db->setTablePrefix($dbConfig['tablePrefix']);
    }
protected static function initDB ( ) { $ dbConfig = static :: getConfig ( 'db' , static :: getServer ( ) ) ; static :: $ db = new Connection ( $ dbConfig [ 'dsn' ] , $ dbConfig [ 'user' ] , $ dbConfig [ 'password' ] , $ dbConfig [ 'options' ] ) ; static :: $ db -> setAttribute ( PDO :: ATTR_ERRMODE , PDO :: ERRMODE_EXCEPTION ) ; if ( ! empty ( $ dbConfig [ 'tablePrefix' ] ) ) static :: $ db -> setTablePrefix ( $ dbConfig [ 'tablePrefix' ] ) ; }
Creates a database connection using \DBScribe\Connection
Creates a database connection using \ DBScribe \ Connection