TutorialEntryController

Extends \Controller

package

Default

Methods

Specifies the access control rules.

accessRules() : array

This method is used by the 'accessControl' filter.

Response

array

access control rules

Manages all models.

actionAdmin() 

Creates a new model.

actionCreate() 

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

Deletes a particular model.

actionDelete(integer $id) 

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

Arguments

$id

integer

the ID of the model to be deleted

Lists all models.

actionIndex() 

Updates a particular model.

actionUpdate(integer $id) 

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

Arguments

$id

integer

the ID of the model to be updated

Displays a particular model.

actionView(integer $id) 

Arguments

$id

integer

the ID of the model to be displayed

filters

filters() : array<mixed,string>

Response

array<mixed,string>

action filters

Returns the data model based on the primary key given in the GET variable.

loadModel(integer $id) : \TutorialEntry

If the data model is not found, an HTTP exception will be raised.

Throws
\CHttpException

Arguments

$id

integer

the ID of the model to be loaded

Response

\TutorialEntry

the loaded model

Performs the AJAX validation.

performAjaxValidation(\TutorialEntry $model) 

Arguments

$model

\TutorialEntry

the model to be validated

Properties

the default layout for the views. Defaults to '//layouts/column2', meaning using two-column layout. See 'protected/views/layouts/column2.php'.

layout : string
var

the default layout for the views. Defaults to '//layouts/column2', meaning using two-column layout. See 'protected/views/layouts/column2.php'.

Type(s)

string