We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a40fa commit 1bc56b8Copy full SHA for 1bc56b8
src/lib/items/RouteData.php
@@ -209,10 +209,12 @@ public function __construct(
209
}
210
$this->moduleList = $modulesPath;
211
212
- $this->prefixSettings = [
213
- 'namespace' => 'app\\' . implode('\\', $parts) . '\\controllers',
214
- 'path' => '@app/' . implode('/', $modulesPathSection) . '/controllers'
215
- ];
+ if ($parts) {
+ $this->prefixSettings = [
+ 'namespace' => 'app\\' . implode('\\', $parts) . '\\controllers',
+ 'path' => '@app/' . implode('/', $modulesPathSection) . '/controllers'
216
+ ];
217
+ }
218
219
220
parent::__construct($config);
0 commit comments