Restructuration du git et ajout de la fonctionnalité de création de portfolio

This commit is contained in:
Guillaume HESS 2026-01-23 16:06:35 +01:00
parent dfaaedbda8
commit 3c80c52529
43 changed files with 1818 additions and 0 deletions

31
public/index.php Normal file
View file

@ -0,0 +1,31 @@
<?php
$strCtrl = $_GET['ctrl']??'project';
$strMethod = $_GET['action']??'home';
$intId = $_GET['id']??null;
$boolError = false;
$strFileName = "../app/controllers/".$strCtrl."_controller.php";
if($intId!=null){
echo $intId;
}
if(file_exists($strFileName)){
require($strFileName);
$strClassName = ucfirst($strCtrl)."Ctrl";
if(class_exists($strClassName)){
$objController = new $strClassName();
if(method_exists($objController,$strMethod)){
$objController->$strMethod();
}else{
$boolError = true;
}
}else{
$boolError = true;
}
}else{
$boolError = true;
}
if($boolError){
echo "error 404 - la page elle existe pas batard";
}