keygenqt/yii2-breadcrumbs-panel

Widget from form image ajax load.

dev-master 2020-03-06 20:35 UTC

This package is auto-updated.

Last update: 2024-11-29 04:41:25 UTC


README

Panel with Breadcrumbs. Made for my the admin panel on yii2.

Installation

The preferred way to install this extension is through composer.

Either add

"require": {
    "keygenqt/yii2-breadcrumbs-panel": "*"
}

of your composer.json file.

Latest Release

The latest version of the module is v0.5.0 BETA.

Usage

Layouts

use \keygenqt\breadcrumbsPanel\BreadcrumbsPanel;

<?= BreadcrumbsPanel::widget([
	'backLink' => false,
	'homeLink' => false,
	'content' => $content
]) ?>

View

use \keygenqt\breadcrumbsPanel\BreadcrumbsPanel;

BreadcrumbsPanel::setParams([
	[
		'label' => 'Sample Post', 
		'url' => ['post/edit', 'id' => 1]
	],
	'Edit'
], 'fa fa-desktop');

Controller (if use back page link)

use \keygenqt\lastPage\LastPage;

class BaseController extends LastPage
{
    ...

License

yii2-breadcrumbs-panel is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.