Closed mark469 closed 3 years ago
Create a new instance of the breadcrumbs widget
<?= Breadcrumbs::widget([ 'homeLink' => false, 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], ]) ?>
The home link should not be rendered
TypeError Argument 1 passed to yii\bootstrap5\Breadcrumbs::renderItem() must be of the type array, bool given
Use:
<?= Breadcrumbs::widget([ 'homeLink' => [], 'links' => $this->params['breadcrumbs'] ?? [], ]) ?>
After merge.
What steps will reproduce the problem?
Create a new instance of the breadcrumbs widget
What is the expected result?
The home link should not be rendered
What do you get instead?
Additional info