From 8ca75edc7c40f704c9018c47d1c660d11c937d88 Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Sat, 27 Jan 2024 01:31:13 -0300 Subject: [PATCH] One more try.... --- system/engine/action.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/system/engine/action.php b/system/engine/action.php index 9b601f6..e3d70aa 100644 --- a/system/engine/action.php +++ b/system/engine/action.php @@ -108,6 +108,21 @@ final class Action implements ActionInterface { array_shift($parts); + break; + }elseif (is_file(Config::DIR_APPLICATION() . 'controller/' . strtolower($strReplaceOnPath) . '.php')) { + $this->file = Config::DIR_APPLICATION() . 'controller/' . strtolower($strReplaceOnPath) . '.php'; + + $this->class = 'Controller' . $pregReplaceOnPath; + + $this->classAlt = [ + 'class' => $this->mountClass($strReplaceOnPathNew, $pregReplaceOnPart), + 'legacy' => $this->class, + 'ucfirst' => ucfirst($pregReplaceOnPart), + 'direct' => $pregReplaceOnPart + ]; + + array_shift($parts); + break; } }