PHP code example of samdark / yii2-iconized-menu-widget
1. Go to this page and download the library: Download samdark/yii2-iconized-menu-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/ */
samdark / yii2-iconized-menu-widget example snippets
use samdark\iconizedMenu;
echo Menu::widget([
'items' => [
['label' => 'Yii Framework', 'url' => 'http://yiiframework.com/'],
['label' => 'RMCreative', 'url' => 'http://rmcreative.ru/', 'items' => [
['label' => 'Yii Framework Russia', 'url' => 'http://yiiframework.ru/'],
]],
['label' => 'Twitter', 'url' => 'http://twitter.com/'],
],
]);