diff --git a/app/controllers/project_controller.php b/app/controllers/project_controller.php index a752af9..b8cf009 100644 --- a/app/controllers/project_controller.php +++ b/app/controllers/project_controller.php @@ -53,7 +53,6 @@ $strStartDate = $_POST['startdate']??''; $strEndDate = $_POST['enddate']??''; $intCategory = $_POST['category']??0; - // Récupération des projetc $objProjectModel = new ProjectModel; $arrProject = $objProjectModel->findAll(intAuthor:$intAuthor, intPeriod:$intPeriod, strDate:$strDate, diff --git a/app/entities/image_entity.php b/app/entities/image_entity.php index cf43548..b919d67 100644 --- a/app/entities/image_entity.php +++ b/app/entities/image_entity.php @@ -9,10 +9,11 @@ require_once("mother_entity.php"); class Image extends Entity{ - private int $_id; - protected string $_name = ''; - protected string $_alt = ''; - protected string $_status =''; + private int $_id; + private string $_name = ''; + private string $_alt = ''; + private string $_status =''; + private int $_project = 0; diff --git a/app/models/project_model.php b/app/models/project_model.php index b342121..6b1fecb 100644 --- a/app/models/project_model.php +++ b/app/models/project_model.php @@ -36,7 +36,7 @@ } // Recherche par catégorie - if ($intAuthor > 0){ + if ($intCategory > 0){ $strRq .= $strWhere." project_category = ".$intCategory; $strWhere = " AND "; } @@ -70,6 +70,7 @@ } // Lancer la requête et récupérer les résultats + var_dump($strRq); return $this->_db->query($strRq)->fetchAll(); } } \ No newline at end of file diff --git a/app/views/partials/footer.php b/app/views/partials/footer.php index 7aca433..0310f3f 100644 --- a/app/views/partials/footer.php +++ b/app/views/partials/footer.php @@ -1,32 +1,5 @@

coucou c'est le footer

- - - - + \ No newline at end of file diff --git a/app/views/search.php b/app/views/search.php index a1e5b9c..a6b8e02 100644 --- a/app/views/search.php +++ b/app/views/search.php @@ -167,3 +167,28 @@ +