MVC Framework divides application into three basic layers Model, View and Controller.
MVC is basically three layer architecture to provide ease to developer for maintenance.
MVC Framework is an architecture pattern that separates application into three components or Layer Model, View and Controller. Each component assigned their specific tasks.
Model
It is used to manipulate data and stores information about objects and data structures used for application.
It fetch data from database and stores and perform changing according to controller.
It is usually called by the Controller and View whenever data details required.
View
It is just to show or represent data to viewers using User Interfaces .
It uses Model to fetch data and present in specific order like as graphs charts and forms etc.
Controller
It is the heart of any application or we can say it is the business logic layer of MVC framework .
It contains methods or actions that you want to perform on your data that it fetches from Model.
It connects both View and Model layer.
Features of MVC
It is highly testable, pluggable and extensible framework.
It provides powerful URL- mapping for Comprehensive and serachable URLs.
It supports Test driven Development.
Advantages of MVC
Development of various task can perform parallelly.
All classed and objects are independent of each other so that you can test them separately.
It works well for Web apps which are supported by large teams of web designers and developers.
Disadvantages of MVC
There is a need for multiple programmers to conduct parallel programming.
Knowledge of multiple technologies is required.
Increased complexity and Inefficiency of data.
Comments