Skip to content

aulia-27/yii_basic

yii2adminlte

Yii2adminlte ver. 2.0.2

How to Install

For yii2 basic

  1. Donwload, extract and copy assets, views, web and vendor directories to your yii2 root project and let it merge the directories
  2. Add this code in array in the config file
    return[
        ...........
    
    	'aliases' => [
    		'@adminlte/widgets'=>'@vendor/adminlte/yii2-widgets'
        	],
        ...........
    ]
  3. Add $this->layout = 'login'; in the top of actionLogin function inside SiteController

For yii2 advanced

  1. Download and extract and copy vendor directory to your yii2 root project, let it merge.
  2. Copy assets, views and web directory to tier you want to install adminlte
  3. Change namespace in AdminLteAsset.php and FontawesomeAsses.php to 'tier_directory'/assets e.g backend/assets
  4. Add this code in array in the tier config file
    return[
        ...........
    
    	'aliases' => [
    		'@adminlte/widgets'=>'@vendor/adminlte/yii2-widgets'
        	],
        ...........
    ]
  5. Add $this->layout = 'login'; in the top of actionLogin function inside SiteController.
  6. In the login layout views\layouts\login.php, change use app\assets\AppAsset; to use backend\assets\AppAsset; and use app\assets\AdminLteAsset; to use backend\assets\AdminLteAsset;

bugs Fixed

  • Image photo and avatar path

About

No description, website, or topics provided.

Resources

License

Apache-2.0, BSD-3-Clause licenses found

Licenses found

Apache-2.0
LICENSE
BSD-3-Clause
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published