Example #1
0
 /**
  * 获得 Watt_Db 对象
  *
  * @return Watt_Db
  */
 public static function getDbx($con_name = "propel")
 {
     if (!self::$_dbx) {
         self::$_dbx = new Watt_Dbx($con_name);
     } else {
         self::$_dbx->reconnect($con_name);
     }
     return self::$_dbx;
 }