Exemple #1
0
 public function __construct($config = array())
 {
     $this->db = DBCommon::run();
     $this->prefix = Config::get('Database', 'prefix');
     if (empty($config)) {
         $config = Config::get('Database');
     }
     $this->db->connect($config);
 }