How to change standard Yii2 app name (“My Application”)
- By Preneesh AV --
- 13-Jan-2019 --
- 111 Comments
Yii::$app->name value is assigned in your application config
You can change the id and name attribute in your config file
'id'=>'your-applicatio-id','name'=>'Your application Name',
these attributesa are store in different file depend by the template you are using
in basic templae you can set these values in
yourapp/confi/web.php
$params =require(__DIR__ .'/params.php'); $config =['id'=>'your-id','name'=>'Your Name',......
in advanced template you can set these values in
backend/config/main.php
and in
frontend/config/main.php
You can use it in common config file too common/config/main.php