Started work on the site design

This commit is contained in:
2023-04-08 16:44:28 -04:00
parent 0a4b41c547
commit cb341524c4
12 changed files with 1303 additions and 1 deletions

17
app/bootstrap.php Normal file
View File

@ -0,0 +1,17 @@
<?php
use Slim\Factory\AppFactory;
use Slim\Views\Twig;
use Slim\Views\TwigMiddleware;
require __DIR__ . '/../vendor/autoload.php';
$app = AppFactory::create();
// Create Twig
$twig = Twig::create(__DIR__ . '/../views', ['cache' => false]);
// Add Twig-View Middleware
$app->add(TwigMiddleware::create($app, $twig));
// Register routes
require_once __DIR__ . '/routes.php';