Template UI for Yii2 Framework, based on AdminLTE3
AdminLTE is a fully responsive administration template. Based on Bootstrap 4 framework.
Highly customizable and easy to use. Fits many screen resolutions from small mobile devices to large desktops.
composer require ayrozjlc/yii2-adminlte3-asset
or add
"ayrozjlc/yii2-adminlte3-asset": "dev-master",
to the require
section of your composer.json
file.
- In view (for example:
@app/views/layouts/main.php
)
// ...
use ayrozjlc\adminlte3\AdminLte3Asset;
// ...
AdminLte3Asset::register($this);
or add to your assets/AppAsset.php
public $depends = [
// ...
'ayrozjlc\adminlte3\AdminLte3Asset',
];
- You can have a preview by reconfiguring the path mappings of the view component:
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => '@vendor/ayrozjlc/yii2-adminlte3-asset/src/yii2-app'
],
],
],
],
- Example in view
use ayrozjlc\adminlte3\assets_extra\IcheckAsset;
IcheckAsset::register($this);
or add to your assets/AppAsset.php
public $depends = [
'ayrozjlc\adminlte3\assets_extra\PaceAsset',
'ayrozjlc\adminlte3\assets_extra\IcheckAsset',
'ayrozjlc\adminlte3\assets_extra\DataTablesAsset',
'ayrozjlc\adminlte3\assets_extra\DataTablesBootstrapAsset',
];
-
Menu
-
ActionColumn
-
Alert
-
Datatables
-
example(menu)
ayrozjlc\adminlte3\widgets\Menu::widget([
'items' => [
'label' => 'menu',
'url' => ['/site/index'],
'icon' => 'users' //$iconClassPrefix = 'fas fa-'
],
'itemOptions' => ['class' => 'nav-item'],
]);