프로퍼티 |
타입 |
설명 |
|
$crudAccessFilter |
|
whether to add accessFilter in behavior |
|
$crudBaseControllerClass |
|
base class for crud controllers |
|
$crudBaseTraits |
|
|
|
$crudControllerNamespace |
|
namespace path for crud controller |
|
$crudFixOutput |
|
whether to fix generated code (PSR-2). Note: May take some time, depending on file size and numbers. |
|
$crudIndexGridClass |
|
|
|
$crudIndexWidgetType |
|
|
|
$crudMessageCategory |
|
the message category for CRUDs used by Yii::t() when $enableI18N is true.
Defaults to app |
|
$crudPathPrefix |
|
route prefix for crud controller actions |
|
$crudProviders |
|
list of code provider classes (fully namespaced path required) |
|
$crudSearchModelNamespace |
|
namespace path for crud search models |
|
$crudSearchModelSuffix |
|
suffix to append to the search model, setting "Search" will result in a model named "PostSearch" |
|
$crudSkipRelations |
|
list of relations to skip, when generating view-views |
|
$crudTemplate |
|
|
|
$crudTidyOutput |
|
whether to tidy generated code |
|
$crudViewPath |
|
namespace path for crud views |
|
$enableI18N |
|
whether the strings will be generated using Yii::t() or normal strings |
|
$extendedModels |
|
whether to overwrite extended models (from ModelBase) |
|
$languageCodeColumn |
|
the column name where the language code is stored |
|
$languageTableName |
|
the name of the table containing the translations. {{table}} will be replaced with the value in
"Table Name" field |
|
$modelBaseClass |
|
base class for the generated models |
|
$modelBaseClassSuffix |
|
suffix to append to the base model, setting "Base" will result in a model named "PostBase" |
|
$modelBaseTraits |
|
traits for base-models |
|
$modelDb |
|
database application component |
|
$modelGenerateHintsFromComments |
|
This indicates whether the generator should generate attribute hints by using the comments of the corresponding DB columns |
|
$modelGenerateLabelsFromComments |
|
This indicates whether the generator should generate attribute labels by using the comments of the corresponding DB columns |
|
$modelGenerateQuery |
|
indicates whether to generate ActiveQuery for the ActiveRecord class |
|
$modelMessageCategory |
|
the message category for models used by Yii::t() when $enableI18N is true.
Defaults to app |
|
$modelNamespace |
|
namespace path for model classes |
|
$modelQueryBaseClass |
|
the base class of the new ActiveQuery class |
|
$modelQueryNamespace |
|
the namespace of the ActiveQuery class to be generated |
|
$modelRemoveDuplicateRelations |
|
|
|
$overwrite |
|
whether to generate and overwrite all files |
|
$singularEntities |
|
whether the entity names will be singular or the same as the table name |
|
$tableNameMap |
|
mapping for table name to model class names |
|
$tablePrefix |
|
eg. app_ |
|
$tables |
|
table names for generating models and CRUDs |
|
$template |
|
the generator template name |
|
$useTimestampBehavior |
|
whether to use yii\behaviors\TimestampBehavior in models |
|
$useTranslatableBehavior |
|
whether to use or not 2amigos/yii2-translateable-behavior |
|