Yii2.x Seo Breadcrumbs ¶
Created a widget for Yii2. This is SeoBreadcrumbs widget which can help your website to set the correct scheme for breadcrumbs
Installation ¶
composer require vumanskyi/yii2-seo-breadcrumbs
How to use ¶
In view file :
`
php
<?php
$this->params['breadcrumbs'][] = [
'label' => 'Home',
'url' => '/'
];
$this->params['breadcrumbs'][] = [
'label' => 'Second',
'url' => '/second'
];
$this->params['breadcrumbs'][] = [
'label' => 'Last',
];
echo \VUmanskyi\SeoBreadcrumbs\SeoBreadcrumbs::widget([
'links' => $this->params['breadcrumbs'],
]);
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.