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(); }); ?>
фильтры материалов
registerJs( << { if( el.checked ) a.push(el.value); }); if( a.length == 0 ) a.push(0); $.getJSON( "$filterurl", { 'filters': a }, function( data ) { if( data.status == 'ok' ){ document.location.reload(); } }); } JS , View::POS_END, 'fmodal' ); }