Class pheme\settings\controllers\DefaultController
Inheritance | pheme\settings\controllers\DefaultController » yii\web\Controller |
---|
SettingsController implements the CRUD actions for Setting model.
Public Methods
Method | Description | Defined By |
---|---|---|
actionCreate() | Creates a new Setting. | pheme\settings\controllers\DefaultController |
actionDelete() | Deletes an existing Setting. | pheme\settings\controllers\DefaultController |
actionIndex() | Lists all Settings. | pheme\settings\controllers\DefaultController |
actionUpdate() | Updates an existing Setting. | pheme\settings\controllers\DefaultController |
actionView() | Displays the details of a single Setting. | pheme\settings\controllers\DefaultController |
actions() | pheme\settings\controllers\DefaultController | |
behaviors() | Defines the controller behaviors | pheme\settings\controllers\DefaultController |
Protected Methods
Method | Description | Defined By |
---|---|---|
findModel() | Finds a Setting model based on its primary key value. | pheme\settings\controllers\DefaultController |
Method Details
Creates a new Setting.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreate ( ) |
Deletes an existing Setting.
If deletion is successful, the browser will be redirected to the 'index' page.
public mixed actionDelete ( $id ) | ||
$id | integer |
Lists all Settings.
public mixed actionIndex ( ) |
Updates an existing Setting.
If update is successful, the browser will be redirected to the 'view' page.
public mixed actionUpdate ( $id ) | ||
$id | integer |
Displays the details of a single Setting.
public mixed actionView ( $id ) | ||
$id | integer |
public void actions ( ) |
Defines the controller behaviors
public array behaviors ( ) |
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 |