Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

28 linhas
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();