Add MySQL schema dump for phpMyAdmin
This commit is contained in:
17
app/Core/Controller.php
Normal file
17
app/Core/Controller.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Core;
|
||||
|
||||
class Controller
|
||||
{
|
||||
protected function view(string $template, array $data = []): Response
|
||||
{
|
||||
$content = View::render($template, $data);
|
||||
return new Response($content);
|
||||
}
|
||||
|
||||
protected function redirect(string $url): Response
|
||||
{
|
||||
return new Response('', 302, ['Location' => $url]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user