Talk in English - US at php[tek] 2019
View Slides: https://www.slideshare.net/AlenaHolligan/organization-patterns-mvc
Checkout the code: https://github.com/sketchings/slim-tutorial-mvc
Short URL: https://joind.in/talk/840c3 (QR-Code (opens in new window))
The Model-View-Controller (MVC) design pattern is heavily used (and misused) in the PHP world. Many PHP frameworks help us – expect us – to organize our web application around this pattern. We’ll examine the intended separation of concerns. We’ll see the middleware, the request-response loop. We’ll configure GET and POST routing. We’ll look at the pattern itself. The model represents the data in our application. The view is the visual component that presents the interface for users to interact with that data, such as clickable links, form fields, and buttons. The controller coordinates it all.