Débug, accès de la view addedit_project via le header et formulaire prêt à l'emplois

This commit is contained in:
GuillaumeH-Cci 2026-02-17 19:07:16 +01:00
parent c91eb6cf89
commit b6ca898069
46 changed files with 109 additions and 4896 deletions

View file

@ -154,7 +154,7 @@ class UserCtrl extends MotherCtrl {
$intId = isset($_GET['id']) ? (int)$_GET['id'] : 0;
if ($intId <= 0) {
header("Location: index.php");
header("Location:index.php");
exit;
}
@ -163,7 +163,7 @@ class UserCtrl extends MotherCtrl {
$arrUserData = $objUserModel->findUserById($intId);
if ($arrUserData === false) {
header("Location: index.php");
header("Location:index.php");
exit;
}
$objUser = new User;
@ -184,19 +184,5 @@ class UserCtrl extends MotherCtrl {
$this->_arrData['arrProjectToDisplay'] = $arrProjectToDisplay;
$this->_display("user");
}
public function addedit_project(){
// Voir si l'utilisateur est connecté ? Retour sur l'index sinon
$intId = isset($_GET['id']) ? (int)$_GET['id'] : 0;
if ($intId <= 0){
header("Location: index.php");
exit;
}
header("Location: index.php?ctrl=project&action=addedit_project");
exit;
}
}