PHPackages                             yii2-tools/yii2-breadcrumbs-filter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. yii2-tools/yii2-breadcrumbs-filter

ActiveYii2-extension[Search &amp; Filtering](/categories/search)

yii2-tools/yii2-breadcrumbs-filter
==================================

Filter for the Yii2 Framework which automatically append module as breadcrumb item

1.0.8(10y ago)0300MITPHP

Since Feb 7Pushed 10y agoCompare

[ Source](https://github.com/yii2-tools/yii2-breadcrumbs-filter)[ Packagist](https://packagist.org/packages/yii2-tools/yii2-breadcrumbs-filter)[ Docs](https://github.com/yii2-tools/yii2-breadcrumbs-filter)[ RSS](/packages/yii2-tools-yii2-breadcrumbs-filter/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Yii2 Breadcrumbs ActionFilter
=============================

[](#yii2-breadcrumbs-actionfilter)

[![Latest Version](https://camo.githubusercontent.com/d138f252846dd8324d3aa21641be48bd28bdb72ebd19a47cb0aef53ddf5be5fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796969322d746f6f6c732f796969322d62726561646372756d62732d66696c7465722e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/yii2-tools/yii2-breadcrumbs-filter)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Quality Score](https://camo.githubusercontent.com/9f7ce63740dbd4cd265ca6eeb65d97ecf5bc8006f9b79eb8ed007d218e8fab1f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f796969322d746f6f6c732f796969322d62726561646372756d62732d66696c7465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/yii2-tools/yii2-breadcrumbs-filter)[![Total Downloads](https://camo.githubusercontent.com/3e45fba06eb1814ae76e647a7b241919f752a46582b0a710bc8bd1c98a4619a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796969322d746f6f6c732f796969322d62726561646372756d62732d66696c7465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yii2-tools/yii2-breadcrumbs-filter)

Yii2 ActionFilter which automatically append module as breadcrumb item if his id exists in requested route.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require yii2-tools/yii2-breadcrumbs-filter:~1.0
```

or add

```
"yii2-tools/yii2-breadcrumbs-filter": "~1.0"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

[Attach behavior](http://www.yiiframework.com/doc-2.0/guide-concept-behaviors.html#attaching-behaviors) to module:

```
public function behaviors()
{
    return array_merge(parent::behaviors(), [
        'breadcrumbs' => [
            'class' => \yii\tools\filters\BreadcrumbsFilter::className(),
        ]
    ]);
}
```

In [view](https://github.com/yiisoft/yii2/blob/master/docs/guide/structure-views.md) file (perhaps, layout):

```
