Don't forget to hit the ⭐ if you like this repo.
The flow description is the following;
- An incoming HTTP request is delivered to the Web MVC Dispatcher
- The Dispatcher automatically recognizes in the HTTP request a call for a Controller execution. Then it uses the Loader to load the appropriate Controller class.
- The Loader imports Controller class and all its dependencies
- The Dispatcher is now enabled to instantiate the appropriate Controller
- 4b...z Its also possible that the Controller aggregates and manages the execution of one or more controllers. This is a feature of WebMVC known as "Hierarchical MVC". We will discuss it later, in this section
- The Controller uses and runs the Model
- 5b Model connects to MySQL to retrieve or store data
- The Controller uses and runs the View
- 6b The View reads the static design of the web page from an HTML Template. The static design of the Template will be used by the View for generating the dynamic web page also by using data provided by the Model.
- The Controller, after loading and processing the Model and View, is enabled to provide back to the Dispatcher the output that was dynamically produced.
- Finally, the Dispatcher sends back the output as an HTTP response
Please create an Issue for any improvements, suggestions or errors in the content.
You can also contact me using Linkedin for any other queries or feedback.