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 trial

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,562 Points

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

Dr.P reon
Dr.P reon
8,562 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;