‫All right guys, so we have a working router that can handle multiple types of requests.
‫And we're still mapping routes to a single file.
‫We'll change it to work with a controller class later.
‫But right now I want to focus on the database.
‫So we're going to be using MySQL and PDO to connect to the database, just like we did in the earlier
‫learning module.
‫And we'll start our database class which will connect.
‫And then we'll also have a query method.
‫Just like with everything else we're going to start simple and then add features and refactor as we
‫go along.
‫Now we're also going to make it so that we can pass data that we get from the database into the view,
‫through that load view function that we created.
‫And this will work similar to how Laravel and other frameworks do this.
‫And once the view has the data, then we can display it within our layout.
‫All right so let's get started with that.