xxxxxxxxxx
/*
|=========================================================
| MVC (Models Views Controllers)
|=========================================================
*/
Models
1-Handles business logic of the application
2-database related options (add/delete/update/select etc)
Views
1-Handles Presentation logic of the application
2-web pages which are presented to user
Controllers
1-Handles Application logic of the application
2-Accetps HTTP requests
3-validate HTTP request using required resource eg validation classes etc
4-it works as an intermediary between the Model, View and any other resources required to process the HTTP request
xxxxxxxxxx
The Model-View-Controller (MVC) is an architectural pattern that separates an
application into three main logical components: the model, the view, and
the controller. Each of these components are built to handle specific
development aspects of an application. MVC is one of the most frequently used
industry-standard web development framework to create scalable and extensible
projects.
xxxxxxxxxx
The Model-View-Controller (MVC) is an architectural pattern that separates an
application into three main logical components.
1) Model:
Model holds the Business Logic or Data-Related Code. Like Model
handles Database.
2) View:
View contains User Interface related code. Like text field, button etc.
3) Controller:
Controller work as interface between Model and View. Controller
controls the flow of the data between View and Controller.
xxxxxxxxxx
Is a software design pattern commonly based off a separation of concerns and reuse where components become responsible for View, Directing the request and the business logic of an application. The components are;
Model
The central component of the pattern. It is the application's dynamic data structure, independent of the user interface. It directly manages the data, logic and rules of the application.
View
Any representation of information such as a chart, diagram or table. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants.
Controller
Accepts input and converts it to commands for the model or view.