title = 'Опросы'; $this->params['breadcrumbs'][] = ['text' => 'Опросы', 'url' =>'/inquirer']; $url = '/inquirer'; Yii::$app->og->title = $this->title; Yii::$app->og->description = 'Все опросы'; Yii::$app->og->canonical = $url; \Yii::$app->og->og_url = $url; \Yii::$app->og->og_type = "article"; \Yii::$app->og->og_title = htmlspecialchars(Yii::$app->og->title); \Yii::$app->og->og_description = Yii::$app->og->description; \Yii::$app->og->og_image = "/img/amic-logo.svg"; $pages = 60; $query = Inquirer::find()->where([ 'active'=>'Y'])->orderBy([ 'id' => SORT_DESC]); $count = $query->count(); ?>
render("/layouts/breadcrumbs")?> request; $ppage = $request->get('page'); $ppage = ($ppage)?'-'.$ppage:''; echo Yii::$app->cache->getOrSet("archive_inq-{$ppage}",function () use($query, $pages){ return ListView::widget([ "dataProvider" => new \yii\data\ActiveDataProvider([ "query"=>$query, "pagination"=>['pageSize'=>$pages], ]), 'options' => [ 'tag' => "ul", 'class' => 'list-wrapper', 'id' => 'list-wrapper', ], "itemOptions"=>[ "tag"=>"li" ], "itemView" => "_item", "layout" => "{items}{pager}" ]); },1); ?>