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 @@
-
-
-
-