PHP code example of yidas / yii2-adminlte

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

    

yidas / yii2-adminlte example snippets


yidas\adminlte\AdminlteAsset

\yidas\adminlte\AdminlteAsset::register($this);

namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
    ];
    public $js = [
    ];
    public $depends = [
        'yidas\adminlte\AdminlteAsset'
    ];
}

'components' => [
    'assetManager' => [
        'bundles' => [
            'yidas\adminlte\AdminlteAsset' => [
                'skin' => 'skin-black',
            ],
        ],
    ],
],

yidas\yii2\adminlte\plugins\iCheckAsset

\yidas\yii2\adminlte\plugins\iCheckAsset::register($this);

'components' => [
    'assetManager' => [
        'bundles' => [
            'yidas\yii2\adminlte\plugins\iCheckAsset' => [
                'skin' => 'flat/aero',
            ],
        ],
    ],
],

    'components' => [
        'view' => [
            'theme' => [
                'pathMap' => [
                   '@app/views' => '@vendor/yidas/yii2-adminlte/templates/example'
                ],
            ],
        ],
    ],

'@app/views' => '@vendor/yidas/yii2-adminlte/templates/simple'

'@app/views' => '@vendor/yidas/yii2-adminlte/templates/simple_zh-TW'