public static function initDB() { global $dbConn; self::$dbConn = $dbConn; //self::$prefix = C("DB_PREFIX"); //self::$table_user = self::$prefix."user_competence";; }
public function initDB() { global $dbConn; self::$dbConn = $dbConn; mysql_query('SET NAMES UTF8'); }
/** * UserCompetenceModel::initDB() * 返回数据库连接 * @return */ public static function initDB() { global $dbConn; self::$dbConn = $dbConn; self::$prefix = C('DB_PREFIX'); }
public static function initDB() { global $dbConn; self::$dbConn = $dbConn; }