PHP code example of andrewdanilov / yii2-breadcrumbs
1. Go to this page and download the library: Download andrewdanilov/yii2-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/ */
andrewdanilov / yii2-breadcrumbs example snippets
<?= andrewdanilov\breadcrumbs\Breadcrumbs::widget([
'templateWrapper' => '@frontend/views/site/breadcrumbs/wrapper', // optional
'templateItem' => '@frontend/views/site/breadcrumbs/item', // optional
'templateActiveItem' => '@frontend/views/site/breadcrumbs/active-item', // optional
'showHome' => false, // optional, default true
'homeLabel' => 'Main', // optional, default 'Main'
'homeUrl' => ['site/index'], // optional, default ['/']
'showActiveItemUrl' => true, // optional, default false
'hideIfSingleItem' => false, // optional, default true. Hides widget if the only element presents in items array. If showHome is true, then home page counts as first element.
'microdata' => true, // optional, default false
'items' => [
['label' => 'Category', 'url' => ['site/category']],
['label' => 'Subcategory', 'url' => ['site/subcategory']],
'Product #1', // short form of ['label' => 'Product #1']
],
])
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.