Multiple Twig Template Folders with Slim Framework
This post is more for my own records than anything else as I couldn't find this information anywhere on the internet.
I have a Slim Framework application that uses Twig for it's templates. I wanted to initiate the Twig instance in my bootstrap file, but then to dynamically update the template directory within my class files depending on the request. It took me a while to figure out how to set Slim to look in multiple directories, or to change the template directory altogether, to render a view.