smarty et merge de tout fini ( ദ്ദി ˙ᗜ˙ )

This commit is contained in:
Yasder5 2026-02-09 11:19:00 +01:00
parent a774205594
commit 6ed4394dda
113 changed files with 11964 additions and 1192 deletions

View file

@ -1,4 +1,5 @@
<?php
session_start();
require("./vendor/autoload.php");
$strCtrl = $_GET['ctrl']??'project';
@ -7,16 +8,14 @@
$boolError = false;
$strFileName = "./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();
$objController->$strMethod ();
}else{
$boolError = true;
}