PHP code example of vumanskyi / yii2-seo-breadcrumbs
1. Go to this page and download the library: Download vumanskyi/yii2-seo-breadcrumbs library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vumanskyi / yii2-seo-breadcrumbs example snippets
$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'],
]);