Пример #1
0
 public static function DeleteHistorycomment($id_comment)
 {
     $model = WComment::model()->find("id=" . $id_comment);
     if ($model->delete()) {
         return TRUE;
     }
     return FALSE;
 }
 public function actionDeleteComment()
 {
     $idcomment = $_REQUEST["idcomment"];
     $model = WComment::model()->findByPk($idcomment);
     $status = 'false';
     if ($model->delete()) {
         $status = 'true';
     }
     echo json_encode(array("result" => $status));
 }