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?
tflight
September 29, 2016, 12:20pm
2
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
RikuS
September 30, 2016, 8:34am
5
It you’re using v2.6.1, you need to select brach 2.x on Github, otherwise you’re downloading the newest version.