PHP code example of jimmyyoung / yii-adminlte

1. Go to this page and download the library: Download jimmyyoung/yii-adminlte 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/ */

    

jimmyyoung / yii-adminlte example snippets


    // file path config/web.php 
    // add this in components
    'view' => [
         'theme' => [
             'pathMap' => [
                '@app/views' => '@vendor/jimmyyoung/yii-adminlte/src'
             ],
         ],
    ],

    use jimmyyoungyoyo\adminlte\component\MenuGenerate;

    <?= MenuGenerate::widget([
        'menu' => [
            ['label' => 'Account', 'icon' => 'fa fa-users', 'url' => '/account/index', 'active' => true],
            ['label' => 'Message', 'icon' => 'fa fa-paper-plane', 'url' => '/message/index', 'active' => false],
            [
            'label' => 'Dashboard',
            'icon' => 'fa fa-tachometer-alt',
            'url' => '#',
            'active' => false,
            'items' => [
                [
                'label' => 'example1',
                'icon' => 'fa fa-users',
                'url' => '/dashboard/example1',
                'active' => false,
                ],
                [
                'label' => 'example2',
                'icon' => 'fa fa-users',
                'url' => '/dashboard/example2',
                'active' => false,
                ],
                [
                'label' => 'example3',
                'icon' => 'fa fa-users',
                'url' => '/dashboard/example3',
                'active' => false,
                ]
            ]
            ],
        ]])