PHP code example of yii2cmf / yii2-adminlte-asset

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

    

yii2cmf / yii2-adminlte-asset example snippets


use Yii;
use yii\base\Theme;
use yii\base\Application;

    public function init():void
    {
        parent::init();
        $this->initTheme();
    }


    private function initTheme(): void
    {
        Yii::$app->view->theme = new Theme([
            'pathMap' => ['@app/views' => '@yii2cmf/templates/adminlte/views'],
            'baseUrl' => '@web/templates/adminlte'
        ]);
    }


use Yii;
use yii\base\Theme;
use yii\base\Application;


    public function init():void
    {
        parent::init();
        $this->initTheme();
    }

    private function initTheme(): void
    {
        Yii::$app->view->theme = new Theme([
            'pathMap' => ['@app/views' => '@app/modules/admin/views/adminlte'],
            'baseUrl' => '@web/modules/admin'
        ]);
    }
    

php composer.phar