I will explain this based on drupal
MVC means MODEL VIEW CONTROLLER
Controller
Controller receive input from user and tells the model & view to perform the input & get that response from it & displays.For example.In drupal index.php is the controller
View
It is an user interface element.Makes the model more intractable with user.For example. themes in drupal is considered as view.
Model
Manages data & behavior of the domain.It responds to the request from controller.
For example.Modules & database comes under the model
No comments:
Post a Comment