letsdrink / ouzo-breadcrumbs
Ouzo breadcrumbs plugin
dev-master
2013-09-30 21:02 UTC
Requires (Dev)
- letsdrink/ouzo: dev-master
- phpunit/phpunit: 3.7.27
This package is auto-updated.
Last update: 2024-12-05 17:49:23 UTC
README
Configuration
- Install via composer
- Include
vendor/letsdrink/ouzo-breadcrumbs/helper/BreadcrumbHelper.php
inapplication/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);