title = 'Опросник'; $this->params['breadcrumbs'][] = $this->title; $query = Inquirer::find()->orderBy([ 'id' => SORT_DESC]); $count = $query->count(); $newsDataProvider = new \yii\data\ActiveDataProvider( [ "query"=>$query, "pagination" => [ 'pageSize' => 50 ] ] ); ?>
beginCache($key, ['duration' => 60*1])) { foreach( $newsDataProvider->getModels() as $item ){ // print_r($item); //return; $strbage = ''; $mark = ''; if( $item->show == 'Y' ){ $mark = ' class="table-success"'; $strbage .= 'голосование
'; } if( $item->active == 'N' ){ $mark = ' class="table-secondary"'; $strbage .= 'спрятан
'; } ?> > // print_r($item); // ?> endCache(); // } ?>
# заголовок URL статусы управление
id?> text?>
https://www.amic.ru/inquirer/id?>
$count, 'defaultPageSize' => 50]); echo "";