• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

what is MVC ?

Chris D

XenForo developer
Staff member
#2
I only have fundamental knowledge. But essentially:
  1. The Model represents the application data
  2. The View renders a presentation of model data
  3. The Controller handles and routes requests made by the client
It's essentially a design principal when it comes to application development. So it's not something tangible that XenForo uses, just a framework that XenForo uses.
http://xenforo.com/community/threads/getting-started-with-xenforo-mvc-frameworks.12402/
This thread has some useful information.
 

craigiri

Well-known member
#3
Yorick is right - I find the easiest way for me to understand it is that instead of an file (php, for instance) being a big hairball of all the functions and the supporting stuff, they are separated out into logical parts.

I'm not a programmer, but these phrases make sense to a layman:
"MVC helps out because you know where to look when it comes to modifying components"
"MVC is simply about separating the three key parts of your app to make it easier to test, maintain, etc."