SELECT DISTINCT friend_id
FROM friends
WHERE
user_id IN (7,25)
AND friend_id NOT IN (7,25) // исключаем из общего списка друзей этих юзеров
[[editWorkImages? &images=`[*images*]`]]
<?= ListView::widget([
'dataProvider' => $dataProvider,
'itemOptions' => ['class' => 'item'],
'itemView' => function ($model, $key, $index, $widget) {
$newModel = array_filter($model, function($obj){
if($obj->post_author == 'vasia')
return true;
});
return $this->render('_list', ['model' => $newModel]);
},
]) ?>