-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception 'yii\base\InvalidParamException' with message 'Invalid path alias: @modules/controllers' #9
Comments
Thanks! Fixed now. |
I am getting the same Exception when trying to run
I have a custom Module defined in use modules\vetscripts\VetScripts;
return [
'modules' => [
'vetscripts' => VetScripts::class
],
'bootstrap' => ['vetscripts'],
]; |
I changed Craft::setAlias('@vetscripts', __DIR__); to Craft::setAlias('@modules/vetscripts', $this->getBasePath());
$this->controllerNamespace = 'modules\vetscripts\controllers'; and now it works! Not sure why, but it's working. Oops! |
@swthate I imagine that this can occur when you do not have the alias set on your Module
At least I was having the same issue and this worked for me. I normally use https://pluginfactory.io to generate my modules. This avoids me a lot of trouble. |
When trying to use the
./craft
command I get the this error on a freshly installed RC1 system.If i return an empty array in
config/app.php
instead of the default it seems to workInstead of:
The text was updated successfully, but these errors were encountered: