gii\generators\crud\Generator generate()

generate() public method Generates the code based on the current user input and the specified code template files. This is the main method that child classes should implement. Please refer to yii\gii\generators\controller\Generator::generate() as an example on how to implement this method. public yii\gii\CodeFile[] generate ( )return yii\gii\CodeFile[] A list of code files to be created.

gii\generators\crud\Generator attributeLabels()

attributeLabels() public method Returns the attribute labels. Attribute labels are mainly used for display purpose. For example, given an attribute firstName, we can declare a label First Name which is more user-friendly and can be displayed to end users. By default an attribute label is generated using generateAttributeLabel(). This method allows you to explicitly specify attribute labels. Note, in order to inherit labels defined in the parent class, a child class needs to merge the parent

gii\generators\crud\Generator $viewPath

$viewPath public read-only property public string getViewPath ( )

gii\generators\crud\Generator $tableSchema

$tableSchema public read-only property public boolean|yii\db\TableSchema getTableSchema ( )

gii\generators\crud\Generator $searchModelClass

$searchModelClass public property public $searchModelClass = ''

gii\generators\crud\Generator $searchAttributes

$searchAttributes public read-only property Searchable attributes public array getSearchAttributes ( )

gii\generators\crud\Generator $nameAttribute

$nameAttribute public read-only property public void getNameAttribute ( )

gii\generators\crud\Generator $name

$name public read-only property Name of the code generator public string getName ( )

gii\generators\crud\Generator $modelClass

$modelClass public property public $modelClass = null

gii\generators\crud\Generator $indexWidgetType

$indexWidgetType public property public $indexWidgetType = 'grid'