public function actionIndex()
{
$group_id = '-10639516';
$answer = new Comments;
if($answer->load(Yii::$app->request->post()) && $answer->validate()) {
$infoAnswer = Yii::$app->vk->api('wall.addComment', array('owner_id' => $group_id,'post_id'=>'3', 'from_group'=>'1','text'=>$answer->comment,'reply_to_comment'=>$answer->cid));
}
$comMes = Comments::find()->select('DISTINCT `commes`')->orderBy(['id'=>SORT_DESC])->all();
return $this->render('index', [
'answer' => $answer,
'comMes' => $comMes,
]);
}