예제 #1
0
 public static function db($db = 0)
 {
     if (empty(self::$dbConfig)) {
         self::$dbConfig = self::$Config['mysql'][$db];
     }
     if (empty(self::$db)) {
         self::$db = \Db\MysqlDb::Prepare(self::$dbConfig);
     }
     return self::$db;
 }