Skip to content

MVC usage in application development

Devrath edited this page Nov 30, 2023 · 4 revisions

  • View layer is considered as the part of the application that has access to the life cycle of the device.
  • Model layer is the data part of the application that stores the data. This layer forms the part that does the content of the app.
  • Controller layer is the layer responsible for deligating the control from view to model and sending back the response from model to view.
  • Vulnerability here involves that too much responsibility is placed on the controller classes. Things involve handling business logic, calling API's and callback, and communicating with database.
  • You can see the flow of control happens from View -> Controller -> Model <-> Then the control comes back <-> Controller -> View
  • Remember that the controller is the brain that control the flow between model and view

Clone this wiki locally