100, 'pageSize'=>5]); ?>
cache->getOrSet("archive_news-test",function () use($author, $pages){ return ListView::widget([ "dataProvider" => new \yii\data\ActiveDataProvider([ "query"=>\app\models\front\News::find()->andwhere(['author'=>$author]), "pagination" =>$pages, "totalCount"=> 100 ]), 'options' => [ 'tag' => "ul", 'class' => 'list-wrapper', 'id' => 'list-wrapper', ], "itemOptions"=>[ "tag"=>"li" ], "itemView" => "item_test", "layout" => "{items}{pager}" ]); },5); ?>