记一下 NopCommerce新增菜单
2013-08-01 13:32 河水 阅读(616) 评论(0) 收藏 举报首先在控制器中添加方法、并添加视图
接着在Nop.Web.Infrastructure中的RouteProvider中新增解析
@Url.RouteUrl("CustomerInfo") 读取的是Nop.Web.Infrastructure中的RouteProvider类
例如
routes.MapLocalizedRoute("CustomerInfo",
"customer/info",//路径
new { controller = "Customer", action = "Info" },//controller=控制器
new[] { "Nop.Web.Controllers" });
然后在Menu.cshtml中添加展示信息
浙公网安备 33010602011771号