Reputation: 3978
in Yii classic you would do something like this:
Yii::app()->getModule('moduleName')->getBaseUrl();
but I'm not sure how you get the base url in Yii2
Upvotes: 2
Views: 1623
Reputation: 133360
Should be
\Yii::$app->getModule('moduleName')->basePath;
Upvotes: 1