add login and register view methods
This commit is contained in:
parent
c9d5ad37b8
commit
5f207f7fcb
1 changed files with 20 additions and 0 deletions
|
|
@ -37,4 +37,24 @@ class ViewController
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function login(Response $response): Response
|
||||||
|
{
|
||||||
|
$html = file_get_contents(
|
||||||
|
__DIR__ . '/../../views/templates/login.php'
|
||||||
|
);
|
||||||
|
$response->getBody()->write($html);
|
||||||
|
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function register(Response $response): Response
|
||||||
|
{
|
||||||
|
$html = file_get_contents(
|
||||||
|
__DIR__ . '/../../views/templates/register.php'
|
||||||
|
);
|
||||||
|
$response->getBody()->write($html);
|
||||||
|
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue