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