/// <summary> /// 构造函数 /// </summary> public ViewPathHelper() { CACHEOBJECT = CachedConfigContext.Current.FrameworkConfig; CURRENTABSOLUTTHEMPATH = CACHEOBJECT.ThemesPath + "/" + CACHEOBJECT.CurrentTheme + "/"; MANAGEVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.ManageViewPath; DIALOGVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.DialogViewPath; NORMALVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.NormalViewPath; MEMBERVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.MemberViewPath; CONTROLPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.ControlPath + "/"; }
/// <summary> /// 构造函数 /// </summary> public BaseController() { //base.ValidateRequest = false; CACHEOBJECT = FrameworkConfig.Instance<FrameworkConfig>(); CURRENTABSOLUTTHEMPATH = CACHEOBJECT.ThemesPath + "/" + CACHEOBJECT.CurrentTheme + "/"; MANAGEVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.ManageViewPath; DIALOGVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.DialogViewPath; NORMALVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.NormalViewPath; MEMBERVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.MemberViewPath; CONTROLPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.ControlPath + "/"; }
static Email() { FrameworkConfig = CachedConfigContext.Current.FrameworkConfig; }