Where does this inscription - "My Yii Application" - come from in the very title of the page?
<title><?= Html::encode($this->title) ?></title> The application name by default is written somewhere in the kernel.
To set your own, you need to set a name in the config
return [ .... 'name'=>'Your New Application Name!', ....other...info and then in view you can write $this->title = Yii::$app->name; where the title will be taken from the config
It can also be defaulted in index files, for example, for the basic application in views/site/index.php , and for the advanced version in backend/views/site/index.php and frontend/views/site/index.php respectively.
The name is taken here: \vendor\yiisoft\yii2\base\Application.php in line 99: $name = 'My Yii Application'
Source: https://ru.stackoverflow.com/questions/491466/
All Articles