‫All right, guys, so now that we have a more intricate router, auto loading and namespaces, we can
‫now focus back on the Crud operations for our listings.
‫So we want to be able to create, read, update and delete listings.
‫We'll start with the create form.
‫But before we look at actually inserting the data we need to validate it.
‫And we'll be using a validation class that will create in the next video.
‫We're also going to look into some other sanitation techniques.
‫Of course, we'll also be using prepared statements with PDO to prevent SQL injection attacks.
‫Once we can create and insert the listings, then we can work on updating and deleting them.
‫Another thing that we'll be doing in this section is adding flash messages so that when we, for instance,
‫submit a new listing, it can redirect and it can show a message that says that that listing has been
‫created successfully.
‫And we'll do this starting out just using the session superglobal right in the controller.
‫But later on we'll refactor it and we'll actually have our own session class within the framework folder.
‫All right.
‫So let's get started with our validation class.