Controller is the customized base controller class.
All controller classes for this application should extend from this base class.
package | Default |
---|
accessRules(): array
This method is used by the 'accessControl' filter.
array
access control rules
actionAdmin()
actionCreate()
If creation is successful, the browser will be redirected to the 'view' page.
actionDelete()
If deletion is successful, the browser will be redirected to the 'index' page.
actionIndex()
actionSuggestTags()
This is called via AJAX when the user is entering the tags input.
actionUpdate()
If update is successful, the browser will be redirected to the 'view' page.
actionView()
filters(): array
array
action filters
loadModel()
If the data model is not found, an HTTP exception will be raised.
newComment( $post): \Comment
This method attempts to create a new comment based on the user input. If the comment is successfully created, the browser will be redirected to show the created comment.
\Comment
the comment instance
layout :string
var | the default layout for the controller view. Defaults to 'column1', meaning using a single column layout. See 'protected/views/layouts/column1.php'. |
---|
string
_model :\CActiveRecord
var | the currently loaded data model instance. |
---|
\CActiveRecord