<?php if(!Yii::$app->user->isGuest): ?>
<ul class="list-unstyled votestable">
<li class="rating-group" @mouseleave="cursor('out', 'assessments-truth')">
<div role="radiogroup" class="voteform-assessments voteform unset">
<div class="assessments-video-block assessments-truth">
<template v-for="index in 10" :key="index">
<div class="radio" @click="selectAssesments('truth', index)" @mouseenter="cursor('over', 'assessments-truth', index)">
<label>
<i class="adviewcon-star"></i>
</label>
</div>
</template>
</div>
<div class="vid-total-score">
<span v-if="assessments.myAssessments != null">
{{ assessments.myAssessments.truth }}
</span>
<span v-else>
0
</span>
<i class="adviewcon-truth" data-toggle="tooltip" data-original-title="<?=Yii::t('base', 'Правдивость')?>"></i>
</div>
</div>
</li>
<li class="rating-group" @mouseleave="cursor('out', 'assessments-info')">
<div role="radiogroup" class="voteform-assessments voteform unset">
<modal name="add_objects">
<?php
$form = ActiveForm::begin([
'method' => 'POST',
]) ?>
<?= VueWidget::widget([ //передача значений происходит посредством js функции.
'component' => 'multi-select',
'property' => [
':options' => [
['id' => '123', 'value' => 'asadoaskdij'],
],
'name' => 'referral'
]
]) ?>
<?php ActiveForm::end(); ?>
<button class="btn" @click='send'>send php</button>
</modal>
public function behaviors()
{
return [
[
'class' => 'yii\filters\ContentNegotiator',
'only' => ['view', 'index'], // in a controller
// if in a module, use the following IDs for user actions
// 'only' => ['user/view', 'user/index']
'formats' => [
'application/json' => Response::FORMAT_JSON,
],
'languages' => [
'en',
'de',
],
'verbs' => [
'class' => \yii\filters\VerbFilter::className(),
'actions' => [
'index' => ['GET'],
'truck' => ['POST', "DELETE"],
'polygon' => ['POST', "DELETE"],
'marker' => ['POST', "DELETE"],
'line-string' => ['POST', "DELETE"],
],
],
],
];
}