@app And @web Not Working In Module

[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';


}

}

Have you checked this link?

https://github.com/yiisoft/yii2/blob/master/docs/guide/basics.md

Thanks for your reply.

My problem is [color="#1C2837"][size="2"]@app, [/size][/color][color="#1C2837"][size="2"]@webroot and [/size][/color][color="#1C2837"][size="2"]@web does not return values. It works as string[/size][/color]

It was fixed.

Thanks