MVC-WORK-FLOW
MVC Work flow
- The user sends a request to the controller.
- The controller acts as a mediator between the view and the model.
- The controller checks the business logic (programming conditions).
- If there is a database request, it will be sent to the model to request data.
- The model processes the request and returns the response data back to the controller.
- The controller doesn't display the raw response data to the user, so it sends the raw data to the view.
- In the view, a response is sent to the user with a graphical user interface (UI).