/yii2-admin-lte

Admin LTE theme for Yii2

Primary LanguagePHPMIT LicenseMIT

Admin LTE for Yii2

Admin LTE themr for Yii2

Installation

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.

Usage

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',
    
    // ...
]
?>

More documentations

Russian