session; $x =$session->get('filterx'); $items = Yii::$app->cache->getOrSet("tagsmenu",function () use($tmodel){ return $tmodel->find()->rightJoin(['m'=>Tagsfilter::find()], 'm.id = tags.id')->orderBy('sort')->All(); }); ?>
фильтры материалов  Ваша лента
beginBlock('FilterModal'); ?> endBlock(); ?> registerJs( << { return c.trim().startsWith(name + '='); }); } function SendTfilter(){ $("#tfilters-modal").toggleClass("hidden"); var selectElement = document.querySelectorAll('.exttag'); var a = []; selectElement.forEach((el) => { if( el.checked ) a.push(el.value); }); if( a.length == 0 ) a.push(0); $.getJSON( "$filterurl", { 'filters': a }, function( data ) { if( data.status == 'ok' ){ delete_cookie('filterq','','/'); document.location.reload(); } }); } JS , View::POS_END, 'fmodal' ); }