smarty ça casse les couilles zebi
This commit is contained in:
parent
b1960b2f35
commit
aec3c845e0
469 changed files with 53465 additions and 69 deletions
|
|
@ -1,42 +0,0 @@
|
|||
<?php
|
||||
|
||||
require("../app/models/project_model.php");
|
||||
require("../app/entities/project_entity.php");
|
||||
require("../app/models/category_model.php");
|
||||
require("../app/entities/category_entity.php");
|
||||
require("../app/models/image_model.php");
|
||||
require("../app/entities/image_entity.php");
|
||||
require("../app/models/user_model.php");
|
||||
require("../app/entities/user_entity.php");
|
||||
|
||||
/**
|
||||
* Le controller de la partie accessible uniquement par l'admin
|
||||
* @author Laura
|
||||
*/
|
||||
|
||||
class AdminCtrl{
|
||||
|
||||
public function admin() {
|
||||
|
||||
/* $objCategory = new Category ();
|
||||
$objCategory->setName($_POST['category_name'] ?? "");
|
||||
$objCategory->setParent($_POST['category_parent'] ?? "");
|
||||
|
||||
$objCategoryModel = new CategoryModel();
|
||||
$boolInsert = $objCategoryModel->insert($objCategory);
|
||||
|
||||
EN ATTENTE
|
||||
if ($boolInsert === true) {
|
||||
$_SESSION['success'] = "Catégorie ajoutée avec succès";
|
||||
header("Location:index.php?ctrl=admin&action=admin");
|
||||
exit;
|
||||
} else {
|
||||
// Erreur globale
|
||||
$arrError['global'] = "Erreur lors de l'ajout";
|
||||
}
|
||||
*/
|
||||
|
||||
include('../app/views/admin.php');
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue