[Solved]Fatal error: Class 'Slim' not found in

I have 2 files:
index.php and Slim.php
I post to you the index.php:

require “./Slim.php”;
Slim::registerAutoloader();
$app = new Slim();
$app->get(’/{foo}’, function () {
echo “Foo!”;
});
$app->run();

I don’t understand why it turns me that class Slim doesn’t exist can you help me?

Which version of Slim are you using and how did you install it?

2.6.1
But I’ve just put the Slim file on the server, I’ve got just the index.php and the Slim file on it…
I’ve sourched how to install slim on a ftp server but I didn’t solve the question, so, I’m trying

I’ve tried to download the Slim manually from https://github.com/slimphp/Slim but there is not the slim file :frowning:

It you’re using v2.6.1, you need to select brach 2.x on Github, otherwise you’re downloading the newest version.

Solved thanks to all