use regular php files instead of twig

This commit is contained in:
Yisroel Baum 2026-04-11 22:36:30 +03:00
parent d66277b824
commit 6d75d3770a
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 14 additions and 1 deletions

View file

@ -9,6 +9,9 @@ class ViewController
{
public function admin(Response $response, Twig $view): Response
{
return $view->render($response, 'admin.html.twig', []);
$html = file_get_contents(__DIR__.'/../../views/templates/admin.php', true);
$response->getBody()->write($html);
return $response;
}
}

10
views/templates/admin.php Normal file
View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Daily Goals</title>
</head>
<body>
<input id='newTextname'/>
<button id='submit'>submit</button>
</body>
</html>