PHP Fatal error: Class 'Slim' not found
session_start(); date_default_timezone_set('GMT'); require 'Slim/Slim.php'; use Slim\Slim; \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim(); require_once 'item.php'; this is code excerpt from index.php and stuck on the said error when it called item.php . Here the contains of the file $app->put('/getItem', authorize(), 'getItem'); function getItem() { $sql = "SELECT * FROM item"; $app = Slim::getInstance(); try { $db = getConnection(); $stmt = $db->query($sql); $item = $stmt->fetchAll(PDO::FETCH_OBJ); $db = null; $response = $app->response(); $response->header('Content-Type',