gii\generators\model\Generator $description

$description public read-only property The detailed description of the generator. public string getDescription ( )

gii\generators\model\Generator $db

$db public property public $db = 'db'

gii\generators\model\Generator $classNames

$classNames protected property protected $classNames = null

gii\generators\model\Generator $baseClass

$baseClass public property public $baseClass = 'yii\db\ActiveRecord'

gii\generators\form\Generator validateViewPath()

validateViewPath() public method Validates $viewPath to make sure it is a valid path or path alias and exists. public void validateViewPath ( )

gii\generators\form\Generator successMessage()

successMessage() public method Returns the message to be displayed when the newly generated code is saved successfully. Child classes may override this method to customize the message. public string successMessage ( )return string The message to be displayed when the newly generated code is saved successfully.

gii\generators\form\Generator stickyAttributes()

stickyAttributes() public method Returns the list of sticky attributes. A sticky attribute will remember its value and will initialize the attribute with this value when the generator is restarted. public array stickyAttributes ( )return array List of sticky attributes

gii\generators\form\Generator rules()

rules() public method Returns the validation rules for attributes. Validation rules are used by validate() to check if attribute values are valid. Child classes may override this method to declare different validation rules. Each rule is an array with the following structure: [ ['attribute1', 'attribute2'], 'validator type', 'on' => ['scenario1', 'scenario2'], //...other parameters... ] where attribute list: required, specifies the attributes array to be validated, for s

gii\generators\form\Generator requiredTemplates()

requiredTemplates() public method Returns a list of code template files that are required. Derived classes usually should override this method if they require the existence of certain template files. public array requiredTemplates ( )return array List of code template files that are required. They should be file paths relative to $templatePath.

gii\generators\form\Generator hints()

hints() public method Returns the list of hint messages. The array keys are the attribute names, and the array values are the corresponding hint messages. Hint messages will be displayed to end users when they are filling the form for the generator. public array hints ( )return array The list of hint messages