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 is default session time and path in php?

752


How to submit form without a submit button.

738


Tell me what is the meaning of a final class and a final method?

794


What is a static variable in php?

780


What is the use of return in php?

664


Explain the difference between isset() and empty()?

712


What is the difference between md5(), crc32() and sha1() crypto on php?

835


What is strlen function in php?

743


Difference between get and post method.

745


How to remove an empty directory?

796


What is the purpose of php?

717


What is the difference between characters  and #?

744


Will php die?

699


How is it possible to set an infinite execution time for php script?

730


What software is required to run php?

735