execut/yii2-navigation

Widgets and components for simplify navigation

1.6.4 2020-10-02 17:32 UTC

README

Yii2 navigation extension

Extension for managing everything related to navigation. Has widgets for display breadcrumbs with support microdata scheme, SEO tags, menus, title and text of the active page according to the given hierarchy. What unties all modules from each other necessary due to the possibility of dynamic customization.

For license information check the LICENSE-file.

English documentation is at docs/guide/README.md.

Русская документация здесь docs/guide-ru/README.md.

Latest Stable Version Total Downloads Build Status

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require execut/yii2-navigation

or add

"execut/yii2-navigation": "dev-master"

to the require section of your composer.json file.

Usage

For example, the following few lines of code in a view file would render a common attributes of active page:

// head
echo \execut\navigation\widgets\Title::widget();
// body
echo \execut\navigation\widgets\Breadcrumbs::widget();
echo \execut\navigation\widgets\Header::widget();
echo \execut\navigation\widgets\Text::widget();
echo \execut\navigation\widgets\Time::widget();