Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Building Websites with PHP Slim Basics & Twig Templates Routing For Our Project

Using workspace: Class not found.

When using the default workspace on this, and previewing, I am getting a blank white page with this error: Fatal error: Uncaught Error: Class 'Slim\Slim' not found in /home/treehouse/workspace/index.php:9 Stack trace: #0 {main} thrown in /home/treehouse/workspace/index.php on line 9.

How am I supposed to work along if the workspace doesn't even work?

Dr.P reon
Dr.P reon
8,561 Points

I am having the same problem, where you able to resolve this issue?

Dr.P reon
Dr.P reon
8,561 Points

Hello Jordan, the problem is not workspace. The slim version Hampton used has been updated to version 3. If you look at the README.md file in slim you will see the updated version. Here is what it looks like

<? php

require 'vendor/autoload.php';

$app = new Slim\App();

$app->get('/hello/{name}', function ($request, $response, $args) {
    $response->write("Hello, " . $args['name']);
    return $response;