2017 © Pedro Peláez
 

yii2-extension yii2-mygii

Gii Generator for double model generation

image

claudejanz/yii2-mygii

Gii Generator for double model generation

  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 12 Versions
  • 5 % Grown

The README.md

yii2-double-model-gii

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This generator generates two ActiveRecord class for the specified database table. An empty one you can extend and a Base one which is the same as the original model generatior., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ php composer.phar require "claudejanz/yii2-mygii": "dev-master"

or add, (*5)

"claudejanz/yii2-mygii": "dev-master"

to the require section of your composer.json file., (*6)

Usage

//if your gii modules configuration looks like below:
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = 'yii\gii\Module';

//remove this two lines
//Add this into common/config/main-local.php
    'bootstrap' => 'gii',
    'modules' => [
        'gii' => [
            'class' => 'yii\gii\Module',
            'generators' => [
                'doubleModel' => [
                    'class' => 'claudejanz\mygii\generators\model\Generator',
                ],
                'kartik-crud' => [
                    'class'     => 'claudejanz\mygii\generators\kcrud\Generator',
                ],
            ],
        ],
    ],

The Versions

01/02 2016

0.0.4

0.0.4.0

Gii Generator for double model generation

  Sources   Download

BSD-4-Clause

The Requires

  • php >=5.3.0

 

14/05 2015

0.0.3

0.0.3.0

Gii Generator for double model generation

  Sources   Download

BSD-4-Clause

The Requires

  • php >=5.3.0

 

14/05 2015

0.0.2

0.0.2.0

Gii Generator for double model generation

  Sources   Download

BSD-4-Clause

The Requires

  • php >=5.3.0

 

26/11 2014

0.0.1

0.0.1.0

Gii Generator for double model generation

  Sources   Download

BSD-4-Clause

The Requires

  • php >=5.3.0