passage en mode composer sur le gitea

This commit is contained in:
Gregory Letellier
2023-11-14 14:47:21 +01:00
parent dce77a6743
commit 2ae0f14b99
3 changed files with 43 additions and 3 deletions

16
src/Controllers/Home.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
namespace Kletellier\MiniWeb\Controllers;
use Kletellier\MiniWeb\Core\Controllers\Controller;
use DateTimeZone;
class Home extends Controller
{
public function index()
{
$date = new \DateTime('now', new DateTimeZone("Europe/Paris"));
$html = $this->renderView("index", ["date" => $date->format("d/m/Y H:i:s")]);
$this->render($html);
}
}