Class hrzg\themes\berliner\controllers\PersonController
Inheritance | hrzg\themes\berliner\controllers\PersonController » yii\web\Controller |
---|
PersonController implements the CRUD actions for Person model.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$enableCsrfValidation | boolean | Whether to enable CSRF validation for the actions in this controller. | hrzg\themes\berliner\controllers\PersonController |
Public Methods
Method | Description | Defined By |
---|---|---|
actionCreate() | Creates a new Person model. | hrzg\themes\berliner\controllers\PersonController |
actionDelete() | Deletes an existing Person model. | hrzg\themes\berliner\controllers\PersonController |
actionIndex() | Lists all Person models. | hrzg\themes\berliner\controllers\PersonController |
actionUpdate() | Updates an existing Person model. | hrzg\themes\berliner\controllers\PersonController |
actionView() | Displays a single Person model. | hrzg\themes\berliner\controllers\PersonController |
behaviors() | Restrict access permissions to admin user and users with auth-item 'module-controller' | hrzg\themes\berliner\controllers\PersonController |
Protected Methods
Method | Description | Defined By |
---|---|---|
findModel() | Finds the Person model based on its primary key value. | hrzg\themes\berliner\controllers\PersonController |
Property Details
Whether to enable CSRF validation for the actions in this controller. CSRF validation is enabled only when both this property and \hrzg\themes\berliner\controllers\Request::enableCsrfValidation are true.
Method Details
Creates a new Person model.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreate ( ) |
Deletes an existing Person model.
If deletion is successful, the browser will be redirected to the 'index' page.
public mixed actionDelete ( $id ) | ||
$id | integer |
Lists all Person models.
public mixed actionIndex ( ) |
Updates an existing Person model.
If update is successful, the browser will be redirected to the 'view' page.
public mixed actionUpdate ( $id ) | ||
$id | integer |
Displays a single Person model.
public mixed actionView ( $id ) | ||
$id | integer |
Restrict access permissions to admin user and users with auth-item 'module-controller'
public void behaviors ( ) |
Finds the Person model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
protected hrzg\themes\berliner\models\Person findModel ( $id ) | ||
$id | integer | |
return | hrzg\themes\berliner\models\Person | The loaded model |
---|---|---|
throws | \yii\web\HttpException | if the model cannot be found |