Skip to content

How to change app name in Yii2

Last updated on February 10, 2018

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.

$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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments