wkf928592 2012-03-22 13:36:10 3198次浏览 0条回复 0 0 0
protected function afterDelete(){
    parent::afterDelete();
    /*写日志*/
    $adminlog = new SysAdminlog();
    $adminlog->AdminId = Yii::app()->user->id;
    $adminlog->CreateTime = date('Y-m-d H:i:s');
    $adminlog->ActionTitle = $this->id."/".$this->action->id;
    $adminlog->ActionContent = Staff::model()->findByPk(Yii::app()->user->id)->TrueName."删除活动\"".$model->ActivityName."(ID:".$model->Id.")\"成功";
    $adminlog->save(false);	
    dialogHelper::runDialog("提示","删除成功");		
}

为什么能删除,却触发不了afterDelete()呢?我这样写对吗?

    没有找到数据。
您需要登录后才可以回复。登录 | 立即注册