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 development I would suggest using controllers whenever possible. It will make your templates so much cleaner.
### Code used in this video
http://bit.ly/SageControllers
### Controllers Documentation
http://bit.ly/2T9S7fR
### Consider buying me a beer, thanks ;) !
https://goo.gl/H0YAVK