mistim / yii2-theme-adminlte
Theme AdminLTE for Yii2 Framework
Installs: 51
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
pkg:composer/mistim/yii2-theme-adminlte
Requires
- php: >=5.4.0
- almasaeed2010/adminlte: ~2.0
- fortawesome/font-awesome: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-10-26 01:22:19 UTC
README
This package contains an:
- AssetBundle for Yii Framework 2.0 which registers the resources of AdminLTE 2 and Font-Awesome 4
- Widgets which use GUI AdminLTE 2
- example views
Installation
The preferred way to install this extension is through composer.
Run:
php composer.phar require mistim/yii2-adminlte-asset "*"
or add require to composer.json:
"mistim/yii2-adminlte-asset": "*"
Configuration
Add the following code to the application configuration
'components' => [
    'view' => [
         'theme' => [
             'pathMap' => [
                '@app/views' => '@vendor/mistim/yii2-theme-adminlte/src/views'
             ],
         ],
    ],
],
Set layout in your main controller:
public $layout = '@vendor/mistim/yii2-theme-adminlte/src/views/layouts/main';
Use template for Gii
'gii' => [
    'class' => 'yii\gii\Module',
    'generators' => [
        'crud' => [
            'class'     => 'yii\gii\generators\crud\Generator',
            'templates' => [
                'adminlte' => '@vendor/mistim/yii2-theme-adminlte/src/generators/crud/default'
            ]
        ]
    ]
],
// TODO ...