Class dmstr\modules\prototype\controllers\base\LessController

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

LessController implements the CRUD actions for Less 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\LessController

Protected Methods

Hide inherited methods

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

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 Less model.

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

public mixed actionCreate ( )
actionDelete() public method

Deletes an existing Less 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 Less models.

public mixed actionIndex ( )
actionUpdate() public method

Updates an existing Less 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 Less model.

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

public void behaviors ( )
findModel() protected method

Finds the Less 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\Less findModel ( $id )
$id integer
return dmstr\modules\prototype\models\Less

The loaded model

throws \yii\web\HttpException

if the model cannot be found