开发者

In MVC file structure, what is Views/XXFolder/xxTemplateFile what is XXFolder known as?

开发者 https://www.devze.com 2022-12-28 20:05 出处:网络
I\'m a bit开发者_如何学C confused about mvc terminology. Using the question title as an example, a view corresponds to an action, which means xxTemplateFile would be considered to represent the view.

I'm a bit开发者_如何学C confused about mvc terminology.

Using the question title as an example, a view corresponds to an action, which means xxTemplateFile would be considered to represent the view.

xxFolder does not represent an area. So could it be a View Collection? or View Container?

Cheers,


This could reprisent the controller class and controller method for the related view. (or controller and action with the view being attached to the action).

Using your example: Views/XXFolder/xxTemplateFile could be used to indicate that your view, xxTemplateFile which is attached to a controller action of the same name, is inside the xxFolder class.

This would make sense if you consider how routed URLs tend to look {controller,action,id}

If this is simply the way you're organising your views then I'd be tempted to just refer to them as View folders or folders.

0

精彩评论

暂无评论...
验证码 换一张
取 消