yii有两种Breadcrumbs写法,
one:
echo Breadcrumbs::widget([
'itemTemplate' => "<li><i>{link}</i></li>\n", // template for all links'links' => [
[
'label' => 'Post Category',
'url' => ['post-category/view', 'id' => 10],
'template' => "<li><b>{link}</b></li>\n", // template for this link only
],
[
'label' => 'Sample Post', 'url' => ['post/edit', 'id' => 1]],
'Edit',
],
]);