diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-18 12:03:45 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-18 12:03:45 +0200 |
commit | 388bd7c3aff8b440febd83598003f96d5a746505 (patch) | |
tree | afd61cffc28709a8357a8dd2295a810e037290a3 /app/class/controllerhome.php | |
parent | 50e367e56b367259a2e6fb29621c97e9b0fc9c5e (diff) | |
download | wcms-388bd7c3aff8b440febd83598003f96d5a746505.tar.gz wcms-388bd7c3aff8b440febd83598003f96d5a746505.zip |
Render All Button
Diffstat (limited to 'app/class/controllerhome.php')
-rw-r--r-- | app/class/controllerhome.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php index 5a6d839..afbde7a 100644 --- a/app/class/controllerhome.php +++ b/app/class/controllerhome.php @@ -1,6 +1,6 @@ <?php -class Controllerhome extends Controller +class Controllerhome extends Controllerart { /** @var Modelhome */ protected $modelhome; @@ -78,6 +78,18 @@ class Controllerhome extends Controller } } + public function renderall() + { + if($this->user->iseditor()) { + $pagelist = $this->modelhome->getlister(); + foreach ($pagelist as $page) { + $this->renderart($page); + $this->artmanager->update($page); + } + } + $this->routedirect('home'); + } + |