aboutsummaryrefslogtreecommitdiff
path: root/app/class/controller.php
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-01-30 21:15:17 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-30 23:16:26 +0100
commit8ac5a09605992f1e434cb793ceca7497c6f46d23 (patch)
tree091f9879f8f94b849300fef2d1a1238f3881f78e /app/class/controller.php
parent396a5776cd043e899e4897ec50fc8edc52585512 (diff)
downloadwcms-8ac5a09605992f1e434cb793ceca7497c6f46d23.tar.gz
wcms-8ac5a09605992f1e434cb793ceca7497c6f46d23.zip
feat: editBy to store the current editor of an art
Diffstat (limited to 'app/class/controller.php')
-rw-r--r--app/class/controller.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/class/controller.php b/app/class/controller.php
index 65d61c3..ce1507a 100644
--- a/app/class/controller.php
+++ b/app/class/controller.php
@@ -79,6 +79,12 @@ class Controller
$this->redirect($this->router->generate($route, []) . $get);
}
+ public function error(int $code)
+ {
+ http_response_code($code);
+ exit;
+ }
+
}