mistim/yii2-theme-adminlte

Theme AdminLTE for Yii2 Framework

0.1 2016-03-23 19:22 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:25:51 UTC


README

This package contains an:

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 ...