
Yii
- 12 ответов
- 0 вопросов
10
Вклад в тег
[
['user_id', 'invite_id'],
'unique',
'targetAttribute' => ['user_id', 'invite_id'],
'filter' => [
'or',
['user_id' => $this->invite_id],
['invite_id' => $this->user_id],
]
],
} catch (\Exception $ex) {
throw new NotFoundHttpException('Not found');
}
$(document).on('click', '.item img', function (event) {
var src = $(this).attr('src');
$('#foto img').attr('src', src);
});