yeesoft/yii2-yee-generator

Yee Gii Generators

Installs: 489

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 5

Open Issues: 0

Type:yii2-extension

0.1.0 2017-03-01 10:23 UTC

This package is auto-updated.

Last update: 2022-03-29 00:18:11 UTC


README

Gii CRUD generator for Yee CMS

This generator generates Yee styled controller and views that implement CRUD (Create, Read, Update, Delete) operations for the specified data model.

Installation

Either run

composer require --prefer-dist yeesoft/yii2-yee-generator "~0.1.0"

or add

"yeesoft/yii2-yee-generator": "~0.1.0"

to the require section of your composer.json file.

Configuration

  • In your common config file
'modules' => [
    'gii' => [
        'class' => 'yii\gii\Module',
        'allowedIPs' => ['*'],
        'generators' => [
            'yee-crud' => [
                'class' => 'yeesoft\generator\crud\Generator',
                'templates' => [
                    'default' => '@vendor/yeesoft/yii2-yee-generator/crud/yee-admin',
                ]
            ],
        ],
    ],
],