diff --git a/framework/base/Module.php b/framework/base/Module.php index 9e30918..ab5a516 100644 --- a/framework/base/Module.php +++ b/framework/base/Module.php @@ -687,7 +687,7 @@ class Module extends Component $className = str_replace(' ', '', ucwords(str_replace('-', ' ', $className))) . 'Controller'; $classFile = $this->controllerPath . '/' . $prefix . $className . '.php'; - $className = $this->controllerNamespace . '\\' . str_replace('/', '\\', $prefix) . $className; + $className = ltrim($this->controllerNamespace . '\\' . str_replace('/', '\\', $prefix) . $className, '\\'); if (strpos($className, '-') !== false || !is_file($classFile)) { return null; }