PHP code example of infoweb-internet-solutions / yii2-cms-menu

1. Go to this page and download the library: Download infoweb-internet-solutions/yii2-cms-menu 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/ */

    

infoweb-internet-solutions / yii2-cms-menu example snippets


'modules' => [
    ...
    'menu' => [
        'class' => 'infoweb\menu\Module',
    ],
],

'menu' => [
    'class' => 'infoweb\menu\Module',
    'enablePrivateMenuItems' => true,
    'linkableEntities' => [
        MedicalTraining::className()  => [
            'label'     => 'Training',
            'i18nGroup' => 'infoweb/medical-training',
        ]
    ]
],