Creating a poll controller
If we want to start building out our web application, we'll need to start with some of the base structures that are used to receive our incoming connection, make decisions, pull in new data, and reformat/structure out the response to the user. We'll start with the most fundamental of these: the controllers. Our controllers act as the glue between our templates, our database, and the incoming/outgoing connections; they put everything together in a way that the end user's browser or client can understand. To understand how to effectively use controllers, however, we'll need to ensure we understand how controllers are structured and how best to use them!
Understanding the controller's structure
We have a lot of work that we need to do to be able to start putting this all together and it would be very easy to get lost in the weeds, so we're going to focus down a little bit on the work that we need to do and start very small. In fact, we're not even going to build out...