Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKeith Colleluori
9,577 PointsPHP Slim + Twig
I have been messing around with Slim and Twig on my hosting account. Everything appears to be installed correctly... my composer.json has
- slim/slim 3.1,
- slim/php-view 2.0,
- twig/twig 1.24
- slim/twig-view 2.1 ... all "required"
I have been able to get a html template to show up using the routes.php and pointed it to main.twig (the template)...
however when I then view the page with some {% block head %} type tagging I am finding that it renders that exact text on the page....
Any idea what I could look for to be the problem here?
Some direction would be appreciated!! I don't mind trying to solve problems but its always a balance with driving my head into a wall.