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; } }