How does MVC pattern work?
MVC ie Model View Controller pattern is a methodology for separating the business
logic (model) from the display logic (view) and the decisional controls (controller).
MVC ie Model View Controller pattern is a methodology for separating the business
logic (model) from the display logic (view) and the decisional controls (controller).
When a User clicks on a URL say http://php-geeks-wink.blogspot.in/ below are the steps processed
1. Front Controller receives the request and sets up the environment.
2. Thereon request reaches the controller.
3. Controller interacts with Model to perform any db queries.
4. Control then reaches to View, preparing the response.
5. Response is then sent back to the browser.
No comments:
Post a Comment