PHP code example of devzyj / yii2-adminlte

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

    

devzyj / yii2-adminlte example snippets


// config.php
return [
    'components' => [
        'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views' => '@devzyj/yii2/adminlte/views',
                ],
            ],
        ],
    ],
];

// config.php
return [
    'components' => [
        'assetManager' => [
            'bundles' => [
                'devzyj\yii2\adminlte\web\AdminLteAsset' => [
                    'skin' => 'skin-blue',
                    'layout' => 'sidebar-mini',
                ],
            ],
        ],
    ],
];

// AppAsset.php
class AppAsset extends \yii\web\AssetBundle
{
    public $css = [
        // 字体样式
        'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic',
    ];
    
    public $depends = [
        'devzyj\yii2\adminlte\web\AdminLteAsset',
    ];
}