smarty et merge de tout fini ( ദ്ദി ˙ᗜ˙ )
This commit is contained in:
parent
a774205594
commit
6ed4394dda
113 changed files with 11964 additions and 1192 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue