In this episode of Sage is Awesome we are going to take a look at how Controllers can be used to make our WordPress theme development cleaner.
So controllers are basically buckets in which you can put the business logic for your theme in, and then have access to those functions inside your templates. We want to do this so that our templates stay clean and not polluted with PHP code. If you are using Sage for your WordPress theme developemt I would suggest using controllers whenever possible. It will make your templates so much cleaner.