public function actionDeleteComments() { $commentsId = Yii::$app->request->post('commentsId'); AdminPhoto::deleteComments($commentsId); echo json_encode(['status' => 1]); }