Model-View-ControllerΒΆ
Vesthelm Engine is based on the Model-View-Controller development pattern. MVC is a software approach that separates application logic from presentation. In practice, it permits your web pages to contain minimal scripting since the presentation is separate from the PHP scripting.
- The Model represents your data structures.
Usually your model classes contain functions that help you retrieve, insert, and update information in your database, but in Vesthelm Engine were implemented three new model types:
- The View is the information that is being presented to a user.
- The Controller serves as an intermediary between the Model, the View, and any other resources needed to process the HTTP request and generate a web page.