Controller:Home
Action :   Index  
View   :   Views/Home/index.cshtml如何实现这样的路径效果 View   :   Views/Mobile/Home/index.cshtml

解决方案 »

  1.   

    你是指view的文件路径还是URL路径?
    view一般放到views根目录,放到子目录没有必要的。
    如果是url路径的话,可以通过参数来实现啊。
      

  2.   


    viewengine 能做的应该是
    View : Views/Home/Mobile/index.cshtm
    这样意味着 每个Controller下面都有1个子文件夹 假设有10个子系统 每个Controller会多十个文件夹
      

  3.   

    new { Area="Mobile", Controller="Home",Action="Index" }
     走向 Controller="Home 的 Index 
     对应 View 还是   Views/Home/Mobile/index.cshtm只是 在URL上多个 htpp:Localhost//Mobile/Home/Index