What is MVC structure in Magento?

Answer Posted / manmohit verma

MVc Structure Called Model View Structure in model view
controller method we have separate files or classes
according to their functional tasks.

Model Refers to the files which communicates with data base
to get info from the database. In magento we have these
files under model folder of every model whether its
core,local or community magento module. Under model folder
we have its model files to get or set data to databse

View Refers to the Files which is displayed to the end user
or client .In magento .phtml files which are in the
app/design directory structure works for View task of MVc
structure .phtml integrates both php and html to produce
output to end user

Controller are controlling files 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 if you don't define the controller
for the a particular url you will be re directed to 404 page
not found default page of magento

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the uses of explode() function?

787


How do you use an array in excel?

770


Is rent a variable cost?

743


What is difference between rest api and restful api?

744


What is boolean in php?

754


What is php namespace?

736


What are the advantages of stored procedures, triggers, indexes in php?

763


How can we determine whether a variable is set?

720


Tell us how to create an array of a group of items inside an html form?

753


Name and explain five of the PHP error constants?

741


What is the scope of a variable defined outside a function?

744


What do you mean by core php?

706


How can I learn php fast?

801


Why do you need to filter out empty files?

711


Does facebook use php framework?

797