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

Is empty in php?

541


Explain the types of functions for Splitting String?

566


What are php loops?

531


What is difference between print and echo in php?

471


What are include() and require() functions?

513






What is the role of php?

503


Tell me how can we determine whether a variable is set?

502


How do I end a php session?

503


What is php and sql used for?

498


What is regular expression in javascript?

445


What is == and === in php?

501


Write a statement to show the joining of multiple comparisons in php?

530


What is member function?

556


Is key in array php?

584


Tell me is it possible to protect special characters in a query string?

491