Grouping views, controllers, models in MVC

Maybe I'm wrong, but I seriously dislike the current structure of the MVC application, and I think that in large projects this will cause problems with persistence.

so there is a way to group related controllers, views, models together, for example, if I have a gallery module. I want all these to be controllers, views, models that will be grouped under the gallery folder.

+3
source share
4 answers

Areas sounds like what you are looking for. This will allow you to group controllers / views / etc. Didn’t I understand the question?

+3
source

Phil Haack , , , .

+2

MVC, Model, View Controller, 90 .

, , , GalleryController. , , , , "" , , , GalleryController, , .

, . , , , , ( ). , , , .. .. , , -. , , .

... Views, , , . , , . , , "" MVC (, ) (.. ). , , . , , - .

+1

, IIS . MVC .

MVC , (, Root, Blog, Forum, App1, App2). - , dll, MVC.

IIS , . - , .

. , IIS . (, "ShowPost/{postname}", "/Blog/ShowPost/{postname}" )

, - , , .

+1
source

Source: https://habr.com/ru/post/1708081/


All Articles