add home controller method
This commit is contained in:
parent
1c2ca21f44
commit
29db3aec55
1 changed files with 8 additions and 0 deletions
|
|
@ -29,4 +29,12 @@ class ViewController
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function home(Response $response): Response
|
||||||
|
{
|
||||||
|
$html = file_get_contents(__DIR__ . '/../../views/templates/home.php', true);
|
||||||
|
$response->getBody()->write($html);
|
||||||
|
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue