分组视图,控制器,在MVC模型 [英] Grouping Views, Controllers, Models in MVC

查看:90
本文介绍了分组视图,控制器,在MVC模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我错了,但我认真,我不喜欢MVC应用程序的当前结构,我认为大项目会引起麻烦来维持。

maybe i am wrong but i seriously i don't like the current structure of MVC application, and i think on big projects it will cause trouble to maintain.

所以,有没有办法将相关的控制器,视图,模型在一起,就像如果我有库模块,我想它所有的控制器,视图,模型下库文件夹进行分组。

so is there a way to group related Controllers,Views, Models together, like if i have gallery Module i want all it's Controllers, Views, Models to be grouped under Gallery Folder.

推荐答案

听起来就像你在找什么。这将让你组控制器/视图/等。除非我误解了这个问题?

Areas sound like what you are looking for. This will let you group controllers/views/etc. Unless I misunderstood the question?

这篇关于分组视图,控制器,在MVC模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆