gii\generators\controller\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

gii\generators\controller\Generator getViewFile()

getViewFile() public method public string getViewFile ( $action )$action string The action ID return string The action view file path

gii\generators\controller\Generator getName()

getName() public method public string getName ( )return string Name of the code generator

gii\generators\controller\Generator getDescription()

getDescription() public method public string getDescription ( )return string The detailed description of the generator.

gii\generators\controller\Generator getControllerNamespace()

getControllerNamespace() public method public string getControllerNamespace ( )return string The namespace of the controller class

gii\generators\controller\Generator getControllerID()

getControllerID() public method public string getControllerID ( )return string The controller ID

gii\generators\controller\Generator getControllerFile()

getControllerFile() public method public string getControllerFile ( )return string The controller class file path

gii\generators\controller\Generator getActionIDs()

getActionIDs() public method Normalizes $actions into an array of action IDs. public array getActionIDs ( )return array An array of action IDs entered by the user

gii\generators\controller\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\controller\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