PHP Class frontend\modules\topic\controllers\CommentController

Inheritance: extends common\components\Controller
Datei anzeigen Open project: iiyii/getyii

Public Methods

Method Description
actionCreate ( $id ) : PostComment | Response 创建评论
actionDelete ( $id ) : Response 伪删除
actionUpdate ( $id ) : string | Response 修改评论
behaviors ( )

Method Details

actionCreate() public method

创建评论
public actionCreate ( $id ) : PostComment | Response
$id
return common\models\PostComment | yii\web\Response

actionDelete() public method

伪删除
public actionDelete ( $id ) : Response
$id
return yii\web\Response

actionUpdate() public method

修改评论
public actionUpdate ( $id ) : string | Response
$id
return string | yii\web\Response

behaviors() public method

public behaviors ( )