3ch3r46 / bootui-breadcrumb
The Bootstrap Triangle Breadcrumbs Arrows for yii framework.
dev-master
2014-06-12 08:53 UTC
Requires
This package is auto-updated.
Last update: 2024-10-29 04:09:20 UTC
README
The Bootstrap Triangle Breadcrumbs Arrows for yii framework.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist 3ch3r46/bootui-breadcrumb "*"
or add
"3ch3r46/bootui-breadcrumb": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code, replace Breadcrumb default in layout/main with code below :
<?php
use bootui\breadcrumb\Breadcrumb;
echo Breadcrumb::widget([
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
]);
Property Type and Size
Type :
default
orBreadcrumb::TYPE_DEFAULT
.primary
orBreadcrumb::TYPE_PRIMARY
.success
orBreadcrumb::TYPE_SUCCESS
.info
orBreadcrumb::TYPE_INFO
.warning
orBreadcrumb::TYPE_WARNING
.danger
orBreadcrumb::TYPE_DANGER
.
Size :
sm
orBreadcrumb::SMALL
.lg
orBreadcrumb::LARGE
.
example:
<?php
use bootui\breadcrumb\Breadcrumb;
echo Breadcrumb::widget([
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
'type' => Breadcrumb::TYPE_PRIMARY,
'size' => Breadcrumb::LARGE,
]);