Admin LTE themr for Yii2
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist socialist/yii2-admin-lte "*"
or add
"socialist/yii2-admin-lte": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply add in the right file, for example in the beginning of the file @views/layout/main
:
<?php
use socialist\adminlte\assets\AdminAsset;
AdminAsset::register($this);
?>
Or you can replace the default layout in the app settings:
<?php
return [
// ...
'layout' => '@vendor/adminlte/layout/main',
// ...
]
?>
Comments