PHP code example of skeeks / yii2-mmenu-widget

1. Go to this page and download the library: Download skeeks/yii2-mmenu-widget 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/ */

    

skeeks / yii2-mmenu-widget example snippets


<?= \wbraganca\mmenu\Menu::widget([
    'items' => [
        [
            'label' => 'Home',
            'url' => '#',
            'icon' => 'glyphicon glyphicon-home'
        ],
        [
            'label' => 'Submenu',
            'url' => '',
            'icon' => 'glyphicon glyphicon-plus-sign',
            'items' => [
                [
                    'label' => 'link 1',
                    'url' => '#',
                    'icon' => 'glyphicon glyphicon-file',
                ],
                 [
                    'label' => 'link 2',
                    'url' => '#',
                    'icon' => 'glyphicon glyphicon-file',
                ],
            ]
        ]
    ]
]) 

php composer.phar