params['breadcrumbs'] = [ [ "text"=>"СТАТЬИ", "url"=>"/articles" ] ]; ?>
cache->getOrSet("archive_rubrics-",function (){ 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) {return \yii\helpers\Html::a($model->title,["news/{$model->url}"],[]);}, "layout" => "{items}" ]); },600); ?>
render("/layouts/breadcrumbs")?> cache->getOrSet("articles_news-",function () use($news_query){ return \yii\widgets\ListView::widget([ "dataProvider" => new \yii\data\ActiveDataProvider([ "query"=>$news_query, "pagination" =>[ "pageSize"=>20 ], ]), 'options' => [ 'tag' => "ul", 'class' => 'list-wrapper', 'id' => 'list-wrapper', ], "itemOptions"=>[ "tag"=>"li" ], "itemView" => "archive/_archive_item", "layout" => "{items}{pager}" ]); },1); ?>