|
|
- <?php
- chdir('..');
- include('config.php');
- include('vendor/autoload.php');
-
- use Symfony\Component\HttpFoundation\Request;
- use Symfony\Component\HttpFoundation\Response;
- $router = new League\Route\RouteCollection;
- $templates = new League\Plates\Engine(dirname(__FILE__).'/../views');
-
- include('controllers/controllers.php');
-
- $dispatcher = $router->getDispatcher();
- $request = Request::createFromGlobals();
- $response = $dispatcher->dispatch($request->getMethod(), $request->getPathInfo());
- $response->send();
|