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!

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 trial


Building Websites with PHP for Slim 3.0?


I went through the Building Websites with PHP course in the workspace and everything went fine. When I tried it on my local machine with slim 3.0, it started giving me errors about missing flikes like Slim\View View.php and Slim\Helpers Set.php etc. I downloaded the course files to my local machine and it works fine. However themost recent version of Slim is 3.0 and the version being used in the course is 2.6. How do I bridge the gap here? Do I just use the versions in the course for my projects?

Thank you.

1 Answer

Kevin Korte
Kevin Korte
28,147 Points

You can just use the same version as the video, or challenge yourself to do it the 3.0 way falling the 2.0 videos. If you can manage to do that, you'll likely learn more, but you'll need a good foundation in plain PHP to not get too frustrated.

No shame in using Slim 2 if that's what it takes to get going.