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 Including & Running Slim

Unsubscribed User
Unsubscribed User
3,136 Points

i can't get this stuff to work

i've been trying to follow the steps hampton is detailing. but each time i try to preview my code, i get a blank page. even after installing slim and using the .htaccess file. i keep getting a blank page. not even a 404 page not found error. just blank and when i try adding the /hello/name link i still get a blank page. please help this is really frustrating

1 Answer

Andrew Rady
Andrew Rady
20,880 Points

From the sounds of it there is a syntax error. PHP is known for having a blank white page if there is an error like this. Can you post your code and I can have a better look at what is causing the problem?

Unsubscribed User
Unsubscribed User
3,136 Points

thanks andrew, i figured out what the error was: i was using \slim\slim() instead of \Slim\Slim()