PHP Class yii\gii\controllers\DefaultController

Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends yii\web\Controller
Datei anzeigen Open project: yiisoft/yii2-gii

Public Properties

Property Type Description
$generator yii\gii\Generator
$layout
$module yii\gii\Module

Public Methods

Method Description
actionAction ( string $id, string $name ) : mixed Runs an action defined in the generator.
actionDiff ( $id, $file )
actionIndex ( )
actionPreview ( $id, $file )
actionView ( $id )

Protected Methods

Method Description
loadGenerator ( string $id ) : yii\gii\Generator Loads the generator with the specified ID.

Method Details

actionAction() public method

Given an action named "xyz", the method "actionXyz()" in the generator will be called. If the method does not exist, a 400 HTTP exception will be thrown.
public actionAction ( string $id, string $name ) : mixed
$id string the ID of the generator
$name string the action name
return mixed the result of the action.

actionDiff() public method

public actionDiff ( $id, $file )

actionIndex() public method

public actionIndex ( )

actionPreview() public method

public actionPreview ( $id, $file )

actionView() public method

public actionView ( $id )

loadGenerator() protected method

Loads the generator with the specified ID.
protected loadGenerator ( string $id ) : yii\gii\Generator
$id string the ID of the generator to be loaded.
return yii\gii\Generator the loaded generator

Property Details

$generator public_oe property

public Generator,yii\gii $generator
return yii\gii\Generator

$layout public_oe property

public $layout

$module public_oe property

public Module,yii\gii $module
return yii\gii\Module