Class pheme\settings\controllers\DefaultController

Inheritancepheme\settings\controllers\DefaultController » yii\web\Controller

SettingsController implements the CRUD actions for Setting model.

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
findModel() Finds a Setting model based on its primary key value. pheme\settings\controllers\DefaultController

Method Details

actionCreate() public method

Creates a new Setting.

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

public mixed actionCreate ( )
actionDelete() public method

Deletes an existing Setting.

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

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

Lists all Settings.

public mixed actionIndex ( )
actionUpdate() public method

Updates an existing Setting.

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

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

Displays the details of a single Setting.

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

public void actions ( )
behaviors() public method

Defines the controller behaviors

public array behaviors ( )
findModel() protected method

Finds a Setting model based on its primary key value.

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

protected pheme\settings\models\Setting findModel ( $id )
$id integer
return pheme\settings\models\Setting

The loaded model

throws \yii\web\NotFoundHttpException

if the model cannot be found