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 -