Class dmstr\modules\prototype\controllers\base\HtmlController

Inheritancedmstr\modules\prototype\controllers\base\HtmlController » yii\web\Controller
Subclassesdmstr\modules\prototype\controllers\HtmlController

HtmlController implements the CRUD actions for Html model.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$enableCsrfValidation boolean Whether to enable CSRF validation for the actions in this controller. dmstr\modules\prototype\controllers\base\HtmlController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
findModel() Finds the Html model based on its primary key value. dmstr\modules\prototype\controllers\base\HtmlController

Property Details

$enableCsrfValidation public property

Whether to enable CSRF validation for the actions in this controller. CSRF validation is enabled only when both this property and \dmstr\modules\prototype\controllers\base\Request::enableCsrfValidation are true.

Method Details

actionCreate() public method

Creates a new Html model.

If creation is successful, the browser will be redirected to the 'view' page.

public mixed actionCreate ( )
actionDelete() public method

Deletes an existing Html model.

If deletion is successful, the browser will be redirected to the 'index' page.

public mixed actionDelete ( $id )
$id integer
actionIndex() public method

Lists all Html models.

public mixed actionIndex ( )
actionUpdate() public method

Updates an existing Html model.

If update is successful, the browser will be redirected to the 'view' page.

public mixed actionUpdate ( $id )
$id integer
actionView() public method

Displays a single Html model.

public mixed actionView ( $id )
$id integer
behaviors() public method

public void behaviors ( )
findModel() protected method

Finds the Html model based on its primary key value.

If the model is not found, a 404 HTTP exception will be thrown.

protected dmstr\modules\prototype\models\Html findModel ( $id )
$id integer
return dmstr\modules\prototype\models\Html

The loaded model

throws \yii\web\HttpException

if the model cannot be found