選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

28 行
1.2KB

  1. <?php
  2. use yii\gii\generators\model\Generator;
  3. /* @var $this yii\web\View */
  4. /* @var $form yii\widgets\ActiveForm */
  5. /* @var $generator yii\gii\generators\model\Generator */
  6. echo $form->field($generator, 'tableName')->textInput(['table_prefix' => $generator->getTablePrefix()]);
  7. echo $form->field($generator, 'modelClass');
  8. echo $form->field($generator, 'ns');
  9. echo $form->field($generator, 'baseClass');
  10. echo $form->field($generator, 'db');
  11. echo $form->field($generator, 'useTablePrefix')->checkbox();
  12. echo $form->field($generator, 'generateRelations')->dropDownList([
  13. Generator::RELATIONS_NONE => 'No relations',
  14. Generator::RELATIONS_ALL => 'All relations',
  15. Generator::RELATIONS_ALL_INVERSE => 'All relations with inverse',
  16. ]);
  17. echo $form->field($generator, 'generateLabelsFromComments')->checkbox();
  18. echo $form->field($generator, 'generateQuery')->checkbox();
  19. echo $form->field($generator, 'queryNs');
  20. echo $form->field($generator, 'queryClass');
  21. echo $form->field($generator, 'queryBaseClass');
  22. echo $form->field($generator, 'enableI18N')->checkbox();
  23. echo $form->field($generator, 'messageCategory');
  24. echo $form->field($generator, 'useSchemaName')->checkbox();