$this->filter = $k; } $menuLabelsCount[$k] = $_totItemsFilter; } ////////////////////////////// $query = $ObjTag->{$menuLabels[$this->filter]}()->published()->orderBy('ym_published_date DESC'); $countQuery = clone $query; $totItems = $countQuery->count(); $pages = new Pagination(['totalCount' => $totItems, 'pageSize' => 10]); $items = $query->offset($pages->offset) ->limit($pages->limit) ->all();
$_GET = [ 'ancestorsSlug' => 'magazine', 'slug' => 'ricerca-per-tag', 'modelClass' => 'ymool\\base\\Page', 'tag' => 'regole', ];