описание
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist idsite/yii2-scroll-pager "*"
or add
"idsite/yii2-scroll-pager": "*"
to the require section of your composer.json
file.
нужно вручную добавить условие на фильтрацию по ИДшникам, которые передаються по умолчанию в GET параметре "notid".
if ($ids = Yii::$app->getRequest()->getQueryParam('notid')) {
$ids = array_map(function($v) {
return (int) $v;
}, explode(',', $ids));
if ($ids) {
return "AND city.id NOT IN (" . implode(',', $ids) . ")";
}
}
или если сортировка по айдишнику можно так
if ($ids = Yii::$app->getRequest()->getQueryParam('notid')) {
if ($ids = explode(',', $ids)) {
$query->andWhere('id<:lid',[':lid'=>array_pop($ids)]);
}
}