public function actionCommentvote() { if (!Yii::$app->user->isGuest && Yii::$app->request->post('comment') != null && Yii::$app->request->post('vote') != null) { QueryModel::commentVote(Yii::$app->request->post('comment')); } return CommentRatesActiveRecord::getRates(Yii::$app->request->post('comment')); }