jakim-pj/yii2-gii-adminlte2

Generators with AdminLTE2 template

Installs: 396

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 4

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.1 2016-12-07 19:28 UTC

This package is auto-updated.

Last update: 2024-04-11 15:46:26 UTC


README

Generators with AdminLTE2 template

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist jakim-pj/yii2-gii-adminlte2

or add

"jakim-pj/yii2-gii-adminlte2": "^1.0"

to the require section of your composer.json file.

Usage

Add to: config/web.php

    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'generators' => [
            'crud' => [
                'class' => 'yii\gii\generators\crud\Generator',
                'template' => 'adminLte2',
                'templates' => [
                    'adminLte2' => '@vendor/jakim-pj/yii2-gii-adminLte2/generators/crud/',
                ]
            ]
        ],
    ];

Copy and customize main layout:

examples/views/layouts/main.php

Index Form