12.2 MVC
The first model to be to be presented goes by the name of model-view-controller or MVC. This pattern is being used in more and more professional web applications. Although it can also be used for smaller applications, its use only really makes sense above a certain size.
What problem area does the MVC design pattern address? Web applications! Often all the data in a site is contained in a single file: the complete PHP code, the HTML structure with all the data, and the layout designed in CSS. Admittedly, the examples in this book follow a very similar approach, but do so for didactic reasons, so that you can see everything at a glance. In a complex project, however, problems arise quickly. Take the connection of databases, for example. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access