The Slim
class' full name (including namespace) is \Slim\Slim
so you'll need to use that, eg
$app = \Slim\Slim::getInstance();
Alternatively, you can import the Slim
symbol using the use
statement at the top of your item.php
script.
use Slim\Slim;