diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-13 19:29:56 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-13 19:29:56 +0200 |
commit | ce3fcb72f2d5d154461a14183069bf87db1e5776 (patch) | |
tree | 34364d5cf6ef977599a465f08b57d4fe432fc750 /app/view/templates | |
parent | 5d1d446ff8a7e63562a0cafac6214b473f3f9baf (diff) | |
download | wcms-ce3fcb72f2d5d154461a14183069bf87db1e5776.tar.gz wcms-ce3fcb72f2d5d154461a14183069bf87db1e5776.zip |
first arrival of flash messages close #85
Diffstat (limited to 'app/view/templates')
-rw-r--r-- | app/view/templates/layout.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index b255738..c96c61f 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -36,6 +36,20 @@ +<?php +if (!empty($flashmessages) && is_array($flashmessages)) { ?> + <div class="flashmessage"> + <ul> + <?php foreach ($flashmessages as $flashmessage ) { ?> + <li class="alert alert-<?= $flashmessage['type'] ?>"> + <?= $flashmessage['content'] ?> + </li> + <?php } ?> + </ul> + </div> +<?php } ?> + + <?= $this->section('page') ?> |