What is MVC?

15 May

Screenshot from 2017-05-15 11-01-00.png

  • M – Model. Holds all the functions on all the database queries such as CRUD – Create, Read, Update and Delete.
  • V – View. Holds all the HTML as well as output any of the variable that got pushed from the Controller. It doesn’t have any database syntax. Takes any of the variables from the Controller and uses HTML to display information.
  • C – Controller. Acts as a middle man between the Model and the View. It directs where everything goes. It determines if it needs whether to communicate with the Model and then it grabs any of the results from the database and it sends that information to the View.


View and Model don’t communicate with each other.

Leave a comment

Posted by on May 15, 2017 in Tutorials


Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: