<?php \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim(array('templates.path' => $_SERVER['DOCUMENT_ROOT'] . "/views")); //$app->response->headers->set('Content-Type', 'application/json'); $app->get('/', function () use($app) { $app->renderIndex(); //$req = $app->request(); //$title = $req->params('title'); }); $app->get('/dashboard', function () use($app) { $app->renderIndex(); }); $app->get('/login', function () use($app) { $app->renderIndex(); }); $app->get('/logout', function () use($app) { $app->renderIndex(); }); $app->get('/profile', function () use($app) { $app->renderIndex(); }); $app->get('/user-management', function () use($app) { $app->renderIndex(); }); $app->get('/register', function () use($app) { $app->renderIndex(); }); $app->get('/forgot', function () use($app) { $app->renderIndex(); });