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
|
||||
{
|
||||
return $view->render($response, 'admin.html.twig', []);
|
||||
$html = file_get_contents(__DIR__.'/../../views/templates/admin.php', true);
|
||||
$response->getBody()->write($html);
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue