RSS

Tag Archives: mvc

What is MVC?

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.

Note:

View and Model don’t communicate with each other.

Advertisements
 
Leave a comment

Posted by on May 15, 2017 in Tutorials

 

Tags: ,