use regular php files instead of twig
This commit is contained in:
parent
d66277b824
commit
6d75d3770a
2 changed files with 14 additions and 1 deletions
|
|
@ -9,6 +9,9 @@ class ViewController
|
||||||
{
|
{
|
||||||
public function admin(Response $response, Twig $view): Response
|
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
10
views/templates/admin.php
Normal 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>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue