letsdrink/ouzo-breadcrumbs

Ouzo breadcrumbs plugin

dev-master 2013-09-30 21:02 UTC

This package is auto-updated.

Last update: 2024-11-05 17:38:13 UTC


README

Configuration

  1. Install via composer
  2. Include vendor/letsdrink/ouzo-breadcrumbs/helper/BreadcrumbHelper.php in application/helper/ApplicationHelper.php

Usage

In controller action just add: Breadcrumb::add('Display name', '/sample/index'); to register a new entry.

To show generated HTML, call: <?= BreadcrumbHelper::showBreadcrumbs() ?>.

You can pass attributes to breadcrumbs generator:

$attributes = array('class' => 'my-class', 'id' => 'breadcrumb-id');
echo BreadcrumbHelper::showBreadcrumbs($attributes);