This commit is contained in:
2024-07-24 14:07:45 +03:00
parent 094e047a5c
commit 043a699c6d
9 changed files with 214 additions and 20 deletions

View File

@ -12,4 +12,9 @@ class Controller
$this->loader = new \Twig\Loader\FilesystemLoader(ROOT_DIR . $_ENV['VIEWS_PATH']);
$this->twig = new \Twig\Environment($this->loader, ['cache' => ROOT_DIR . $_ENV['VIEWS_CACHE_PATH']]);
}
public function redirect(string $url): void
{
header("Location: " . $url);
}
}