วันพุธที่ 30 พฤษภาคม พ.ศ. 2561

MVC

  • view can be any output representation of information, such as a chart or a diagram. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants. So view is UI.
  • controller, accepts input and converts it to commands for the model or to update view. So controller pass input to a corresponding model.

  • model is the central component of the pattern. It expresses the application's behavior in terms of the problem domain, independent of the user interface. It directly manages the data, biz logic and rules of the application. So model is a biz logic processing component.
cf. wikipedia