Yii2 Default application name is “My Application”. You can change this name by editing the config/main.php. Just add the application name property in Config Array.
NOTE: If you’re using the advanced app you will need to change the frontend and backbend config/main.php files.
1 2 3 4 5 6 |
$config = [ 'id' => 'basic', 'name'=>'Snippet Guru', ..... ]; |
You can access site or app name with Yii::$app->name
.
Ref: http://www.yiiframework.com/doc/api/1.1/CApplication#name-detail
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.
Subscribe
Login
0 Comments