[Cppcms-users] Why a single view per content class?
Brought to you by:
artyom-beilis
From: Erasmo A. <eag...@ho...> - 2015-05-06 06:56:50
|
Hello, I was reading the Using Templates section of the CppCMS tutorial: http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello_templates#The.template, and the following statement referring to views caught my eye: "As a rule of thumb we name them the same way as the corresponding content classes." According to this statement, one should have a single view per model (content) class. However this does not fit well to the concept of view, as its primary intent is to potentially provide several representations of the same model. For example, one might want a Create, Edit and Read view of a same model of class Employee. So why does the tutorial say the view should be named the same as the content class? Erasmo. |