MVC(Model view Controller)
Model(M):As the name refer Model which will store the businees logic i.e database connection or connection to datasources.Magento uses the model folder for every module whether it is in core,local,community
View(C):The view refer to presentaion logic i.e templating and caching which will display to the end user.Magento having .phtml and with help of Xml it produce output to the user
Controllers(C): Controller are the iles which decides the actions between model and view files what output to be generated these files are under controller folder and manages the url structure for magento.In magento if you will not define the Controller it will redirect to 404 page.
In Simple way to understand the MVC take example CAR
Model: Other Input from the Model
View :Interior and Exterior features of the car
Controller: Input from the user like applying break,staring,horn etc...
Model(M):As the name refer Model which will store the businees logic i.e database connection or connection to datasources.Magento uses the model folder for every module whether it is in core,local,community
View(C):The view refer to presentaion logic i.e templating and caching which will display to the end user.Magento having .phtml and with help of Xml it produce output to the user
Controllers(C): Controller are the iles which decides the actions between model and view files what output to be generated these files are under controller folder and manages the url structure for magento.In magento if you will not define the Controller it will redirect to 404 page.
In Simple way to understand the MVC take example CAR
Model: Other Input from the Model
View :Interior and Exterior features of the car
Controller: Input from the user like applying break,staring,horn etc...
No comments:
Post a Comment
Thankyou for your Comments