PHP code example of leoshtika / yii2-nav-sidebar
1. Go to this page and download the library: Download leoshtika/yii2-nav-sidebar library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
leoshtika / yii2-nav-sidebar example snippets
<?= leoshtika\bootstrap\NavSidebar::widget([
'items' => [
[
'url' => ['site/index'],
'label' => 'Home',
'icon' => 'home' // This is a bootstrap icon name
],
[
'url' => ['site/about'],
'label' => 'about',
'icon' => 'info-sign' // This is a bootstrap icon name
],
],
])