I am trying to get the base URL for the project in Yii 2 but it doesn\'t seem to work. According to this page you used to be able to do:
Yii::app()->getBa
Use it like this:
Yii::$app->getUrlManager()->getBaseUrl()
More information on base, canonical, home URLs: http://www.yiiframework.com/doc-2.0/yii-helpers-url.html