Pergunta

I'm a bit 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,

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top