vumanskyi/yii2-seo-breadcrumbs

Created a widget for Yii2. This is SeoBreadcrumbs widget which can help your website to set the correct scheme for breadcrumbs

1.0.0 2020-02-11 14:33 UTC

This package is auto-updated.

Last update: 2024-10-22 01:48:09 UTC


README

Yii2.x Seo Breadcrumbs

StyleCI Build Status License: MIT

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
    $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'],
    ]);