PHP Classes

File: gii/form_data.php

Recommend this page to a friend!
  Classes of Insolita   YII2 Migrik   gii/form_data.php   Download  
File: gii/form_data.php
Role: Example script
Content type: text/plain
Description: Example script
Class: YII2 Migrik
Create migration files for applications using YII2
Author: By
Last change:
Date: 1 year ago
Size: 737 bytes
 

Contents

Class file image Download
<?php
/**
 * @var yii\web\View $this
 * @var yii\widgets\ActiveForm $form
 * @var yii\gii\generators\form\Generator $generator
 */

echo $form->field($generator, 'tableName');
echo
$form->field($generator, 'onlyColumns');
echo
$form->field($generator, 'exceptColumns');
echo
$form->field($generator, 'db');
echo
$form->field($generator, 'migrationPath');
echo
$form->field($generator, 'usePrefix')->checkbox();
echo
$form->field($generator, 'insertMode')
    ->
dropDownList([
        \
insolita\migrik\gii\DataGenerator::MODE_QUERY=>'as batchInsert',
        \
insolita\migrik\gii\DataGenerator::MODE_MODEL=>'as Model instances'
                  
]);
echo
$form->field($generator, 'modelClass');
echo
$form->field($generator, 'prefix');