[size=2]I am trying to change the theme in module initialization. But [/size][size=2]@app and @web not working as expected[/size]
namespace app\modules\user;
class Module extends \yii\base\Module
{
public $controllerNamespace = 'app\modules\user\controllers';
public function init()
{
parent::init();
\Yii::$app->view->theme->pathMap = ['@app/views' => '@webroot/themes/basic'];
\Yii::$app->view->theme->baseUrl = '@web/themes/basic';
}
}