From 466c4b062532845268a545d9317860e03d6f566f Mon Sep 17 00:00:00 2001 From: "laura.chevillet" Date: Tue, 27 Jan 2026 16:23:47 +0100 Subject: [PATCH] =?UTF-8?q?Fractionnement=20de=20la=20page=20admin=20pour?= =?UTF-8?q?=20enlever=20le=20header=20et=20footer=20car=20d=C3=A9j=C3=A0?= =?UTF-8?q?=20pr=C3=A9sent=20en=20partial.=20Attente=20de=20maj=20CSS/HTML?= =?UTF-8?q?=20du=20la=20page=20Admin=20de=20Guillaume=20pour=20pouvoir=20a?= =?UTF-8?q?vancer=20sur=20le=20PHP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/admin_controller.php | 7 +++---- app/views/admin.php | 6 +----- app/views/partials/footer.php | 2 ++ app/views/partials/header.php | 5 +++-- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app/controllers/admin_controller.php b/app/controllers/admin_controller.php index 511e117..35efe39 100644 --- a/app/controllers/admin_controller.php +++ b/app/controllers/admin_controller.php @@ -14,18 +14,18 @@ * @author Laura */ - class Admin{ + class AdminCtrl{ public function admin() { - $objCategory = new Category (); + /* $objCategory = new Category (); $objCategory->setName($_POST['category_name'] ?? ""); $objCategory->setParent($_POST['category_parent'] ?? ""); $objCategoryModel = new CategoryModel(); $boolInsert = $objCategoryModel->insert($objCategory); - /* EN ATTENTE + EN ATTENTE if ($boolInsert === true) { $_SESSION['success'] = "Catégorie ajoutée avec succès"; header("Location:index.php?ctrl=admin&action=admin"); @@ -41,5 +41,4 @@ include('../app/views/partials/footer.php'); } - } \ No newline at end of file diff --git a/app/views/admin.php b/app/views/admin.php index 8cfe210..4441546 100644 --- a/app/views/admin.php +++ b/app/views/admin.php @@ -115,8 +115,4 @@ - - - - - + \ No newline at end of file diff --git a/app/views/partials/footer.php b/app/views/partials/footer.php index c380f5b..38e86aa 100644 --- a/app/views/partials/footer.php +++ b/app/views/partials/footer.php @@ -28,5 +28,7 @@

Suivez-nous

+ + \ No newline at end of file diff --git a/app/views/partials/header.php b/app/views/partials/header.php index 1c00337..1180732 100644 --- a/app/views/partials/header.php +++ b/app/views/partials/header.php @@ -11,10 +11,11 @@ + Folliow -