PHP code example of ayrozjlc / yii2-adminlte3-asset

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

    

ayrozjlc / yii2-adminlte3-asset example snippets


// ...
use ayrozjlc\adminlte3\AdminLte3Asset;
// ...
AdminLte3Asset::register($this);

public $depends = [
    // ...
    'ayrozjlc\adminlte3\AdminLte3Asset',
];

'components' => [
    'view' => [
        'theme' => [
            'pathMap' => [
                '@app/views' => '@vendor/ayrozjlc/yii2-adminlte3-asset/src/yii2-app'
            ],
        ],
    ],
],

use ayrozjlc\adminlte3\assets_extra\IcheckAsset;

IcheckAsset::register($this);

public $depends = [
    'ayrozjlc\adminlte3\assets_extra\PaceAsset',
    'ayrozjlc\adminlte3\assets_extra\IcheckAsset',
    'ayrozjlc\adminlte3\assets_extra\DataTablesAsset',
    'ayrozjlc\adminlte3\assets_extra\DataTablesBootstrapAsset',
];

ayrozjlc\adminlte3\widgets\Menu::widget([
    'items' => [
        'label' => 'menu',
        'url' => ['/site/index'],
        'icon' => 'users' //$iconClassPrefix = 'fas fa-'
    ],
    'itemOptions' => ['class' => 'nav-item'],
]);
@app/views/layouts/main.php
assets/AppAsset.php
assets/AppAsset.php