Главное за неделю
cache->getOrSet("main-page-text-widget",function () use ($newsDataProvider){
return \yii\widgets\ListView::widget([
"dataProvider" => $newsDataProvider,
'options' => [
'tag' => false,
'class' => 'list-wrapper',
'id' => 'list-wrapper',
],
"itemOptions"=>[
"tag"=>false
],
"itemView" => "_text_widget_item",
"layout" => "{items}"
]);
},1);
?>