<?php // Define project specific routes using $app which is an instance of Slim /* For example: $app->get('/foo/bar', function($request, $response, $args) { $controller = new \Project\Controllers\Index($this, $request, $response); return $controller->index(); }); */ if (!S3MVC_APP_USE_MVC_ROUTES) { //Not using mvc routes. So at least define the default / route. //You can change it for your app if desired $app->get('/', function ($request, $response, $args) { $prepend_action = !S3MVC_APP_AUTO_PREPEND_ACTION_TO_ACTION_METHOD_NAMES; $action = $prepend_action ? 'action-index' : 'index'; $controller = new Hello($this, 'hello', $action); return $controller->actionIndex(); }); }