nice
This commit is contained in:
parent
ef21c4b33d
commit
da33d61b69
2 changed files with 4 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
/templates_c/
|
/templates_c/
|
||||||
/templates_c/**
|
/templates_c/**
|
||||||
.env
|
.env
|
||||||
|
.htaccess
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||||
$dotenv->safeLoad();
|
$dotenv->safeLoad();
|
||||||
|
|
||||||
$strCtrl = $_GET['ctrl'] ?? 'project';
|
$strCtrl = preg_replace('/[^a-zA-Z]/', '', $_GET['ctrl'] ?? 'project');
|
||||||
$strMethod = $_GET['action'] ?? 'home';
|
$strMethod = preg_replace('/[^a-zA-Z_]/', '', $_GET['action'] ?? 'home');
|
||||||
|
|
||||||
$strClassName = "Controllers\\" . ucfirst($strCtrl) . "Ctrl";
|
$strClassName = "Controllers\\" . ucfirst($strCtrl) . "Ctrl";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue