dimis283
(Dimis283)
1
I use the bellow code for Breadcrumbs,my question is how can I set the "home" link that appears at the page
$this->title = 'Building documents ' . $folder['name'] . " " . $build['name'];
$this->params['breadcrumbs'][] = $this->title;
[edit] I found this
Yii::$app->homeUrl
,I have to put it (set it) at the constructor of the controller?
mikezimin
(Mzimin)
2
You can set it in config/main.php:
return [
'id' => 'app-backend',
'basePath' => dirname(__DIR__),
...
'homeUrl' => '...',