© Christopher Pitt 2021
C. PittPro PHP 8 MVChttps://doi.org/10.1007/978-1-4842-6957-2_5

5. Building a Validator

Christopher Pitt1  
(1)
Verbena Close 1, Stellenberg, Durbanville, Cape Town, South Africa
 

It’s time to start adding a bit more structure to our application. We’ve been very focused on framework code – which isn’t a bad thing – but it meant that we’ve neglected some of the fundamental things we need to start building a proper website.

Most websites have forms. Let’s make it easier to build and use them to capture user input! First, we’ll need to make an alternative to keeping all of our application code inside the routes file…

What Are Controllers?

We’ve already covered much of the “View” portion of MVC, and we’re going to take a deep dive ...

Get Pro PHP 8 MVC: Model View Controller Architecture-Driven Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.