全球化的原因,我需要能夠做到這一點:如何使用另一個控制器的視圖?
http://mysite/home
http://mysite/Accueil
我試過是繼承了家庭控制在我的ACCUEIL類:
Public Class AccueilController
Inherits HomeController
End Class
的問題是,它試圖進入ACCUEIL文件夾,查找的Index.aspx有
The view 'Index' or its master could not be found. The following locations were searched:
~/Views/Accueil/Index.aspx
~/Views/Accueil/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
我希望它用,所以我沒有重複的代碼
~/Views/Home/Index.aspx
什麼是最簡單的方法呢?
問題是,一切都將被放在那裏,如果我開始從每一個控制器這樣的大這樣做,一切都沒有任何 – Fredou 2009-06-10 16:21:17