Пример #1
0
 public function actionDeleteFromComplains()
 {
     $id = Yii::$app->request->post('id');
     $modelAdComplain = new AdComplains();
     $modelAdComplain->deleteFromComplains($id);
     Yii::$app->session->setFlash('info', Yii::t('app', 'This ad is removed from complains.'));
     return $this->renderAjax('@common/widgets/AdWidget/views/_icon-complain-empty', ['id' => Yii::$app->request->post('id'), 'icon' => Yii::$app->request->post('icon'), 'ok' => 1]);
 }