Skip to content

letsdrink/ouzo-breadcrumbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ouzo breadcrumbs plugin

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);

Releases

No releases published

Packages

No packages published

Languages