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