diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-09 02:17:47 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-09 02:17:47 +0200 |
commit | 0e66e1d890ca775b50b43990a4d92c035c1eb5b2 (patch) | |
tree | 16f56864ad5686a337d03de326041e518481d22a /app/class/Controller.php | |
parent | 1270f3300998afbc5defab832e02cc831f486d9f (diff) | |
download | wcms-0e66e1d890ca775b50b43990a4d92c035c1eb5b2.tar.gz wcms-0e66e1d890ca775b50b43990a4d92c035c1eb5b2.zip |
feature : cookie session management
Diffstat (limited to 'app/class/Controller.php')
-rw-r--r-- | app/class/Controller.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/class/Controller.php b/app/class/Controller.php index 7398a7d..ab40a82 100644 --- a/app/class/Controller.php +++ b/app/class/Controller.php @@ -2,6 +2,7 @@ namespace Wcms; +use DateTime; use DateTimeImmutable; use League\Plates\Engine; @@ -63,6 +64,7 @@ class Controller $commonsparams['user'] = $this->user; $commonsparams['pagelist'] = $this->pagemanager->list(); $commonsparams['css'] = Model::csspath(); + $commonsparams['now'] = new DateTimeImmutable(); return $commonsparams; } |