cache->getOrSet("archive_rubrics-{$topic->id}",function () use($topic){
return \yii\widgets\ListView::widget([
"dataProvider" => new \yii\data\ActiveDataProvider([
"query"=>NewsTopic::find()->andWhere(["show"=>"Y","active"=>1])->orderBy(["order"=>SORT_DESC]),
"pagination" =>[
"pageSize"=>0
],
]),
'options' => [
'tag' => "ul",
'class' => 'list-wrapper',
'id' => 'list-wrapper',
],
"itemOptions"=>[
"tag"=>"li"
],
"itemView" => function($model) use($topic) {return \yii\helpers\Html::a($model->title,["news/{$model->url}"],['class'=>$model->id==$topic->id?"active":""]);},
"layout" => "{items}"
]);
},600);
?>