✨ Ajoute la redirection
This commit is contained in:
parent
1e83e7f8d0
commit
08de1a5c7f
1 changed files with 6 additions and 1 deletions
|
@ -49,4 +49,9 @@ class Renderer {
|
||||||
echo $this->twig->render($template, $this->data);
|
echo $this->twig->render($template, $this->data);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function redirect($redirection) {
|
||||||
|
header("Location: " . $redirection);
|
||||||
|
die();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue