forked from projects/fipamo
30 lines
688 B
PHP
30 lines
688 B
PHP
<?php
|
|
use Psr\Http\Message\ResponseInterface;
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
use Slim\Views\Twig;
|
|
|
|
class IndexControl
|
|
{
|
|
public static function start(
|
|
ServerRequestInterface $request,
|
|
ResponseInterface $response,
|
|
array $args
|
|
): ResponseInterface {
|
|
//unset($_SESSION);
|
|
$view = Twig::fromRequest($request);
|
|
|
|
$html = file_get_contents("../public/index.html");
|
|
$response->getBody()->write($html);
|
|
return $response;
|
|
|
|
/*
|
|
return $view->render($response, "front/start.twig", [
|
|
"title" => "Fipamo Dash",
|
|
"status" => false,
|
|
"pages" => [],
|
|
"totalPages" => 0,
|
|
]);
|
|
*/
|
|
}
|
|
}
|