我想更改默认文本“主页”以及主页的 URL。在搜索它时,我发现需要设置homeUrl 的建议,但我不知道在哪里设置它。如果需要,请索取代码。
您需要配置$homeLink属性:
echo Breadcrumbs::widget([
'homeLink' => [
'label' => 'My name',
'url' => '/my/url',
],
'links' => [
// your items
],
// rest of widget config
]);
Run Code Online (Sandbox Code Playgroud)