コード例 #1
0
 protected override bool FileExists(ControllerContext controllerContext, string virtualPath)
 {
     if (ViewEngineUtility.IsPemsController(controllerContext))
     {
         return(base.FileExists(controllerContext,
                                ViewEngineUtility.AreaPathFix(controllerContext, virtualPath)));
     }
     else
     {
         return(base.FileExists(controllerContext, virtualPath));
     }
 }
コード例 #2
0
 protected override IView CreatePartialView(ControllerContext controllerContext, string partialPath)
 {
     if (ViewEngineUtility.IsPemsController(controllerContext))
     {
         return(base.CreatePartialView(controllerContext,
                                       ViewEngineUtility.AreaPathFix(controllerContext, partialPath)));
     }
     else
     {
         return(base.CreatePartialView(controllerContext, partialPath));
     }
 }
コード例 #3
0
 protected override IView CreateView(ControllerContext controllerContext, string viewPath, string masterPath)
 {
     if (ViewEngineUtility.IsPemsController(controllerContext))
     {
         return(base.CreateView(controllerContext,
                                ViewEngineUtility.AreaPathFix(controllerContext, viewPath),
                                ViewEngineUtility.AreaPathFix(controllerContext, masterPath)));
     }
     else
     {
         return(base.CreateView(controllerContext, viewPath, masterPath));
     }
 }