fipamo/brain/controller/IndexControl.inc.php

20 lines
465 B
PHP
Raw Normal View History

2020-11-17 23:27:25 +01:00
<?php
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Views\Twig;
2020-11-17 23:27:25 +01:00
class IndexControl
{
public static function start(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
): ResponseInterface {
//unset($_SESSION);
$view = Twig::fromRequest($request);
2021-04-22 03:41:32 +02:00
$html = file_get_contents("../public/index.html");
$response->getBody()->write($html);
return $response;
}
}