PHP code example of devnullius / yii2-admin-lte

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

    

devnullius / yii2-admin-lte example snippets


'components' => [
    'view' => [
         'theme' => [
             'pathMap' => [
                '@app/views' => '@vendor/devnullius/yii2-admin-lte/src/views'
             ],
         ],
    ],
],


use devnullius\adminlte\widgets\Alert;

/* @var $this View */

use devnullius\adminlte\assets\PluginAsset;

PluginAsset::register($this)->add('sweetalert2');

return [
    'adminEmail' => '[email protected]',
    'devnullius.adminlte' => [
        'pluginMap' => [
            'sweetalert2' => [
                'css' => 'sweetalert2-theme-bootstrap-4/bootstrap-4.min.css',
                'js' => 'sweetalert2/sweetalert2.min.js'
            ]
        ]
    ]
];

/* @var $this View */

use devnullius\adminlte\assets\PluginAsset;

$bundle = PluginAsset::register($this);
$bundle->css[] = 'sweetalert2-theme-bootstrap-4/bootstrap-4.min.css';
$bundle->js[] = 'sweetalert2/sweetalert2.min.js';