title="Активные рубрики"; if (Yii::$app->request->isGet && $post = Yii::$app->request->get('id')){ $newsDataProvider = new \yii\data\ActiveDataProvider( [ "query"=>\app\models\base\NewsTopic::find()->where(['active'=>1, 'topic_id'=>$post])->orderBy(["order"=>SORT_ASC]), "pagination" => false ] ); $this->title="Активные рубрики: ".$post; }else{ $newsDataProvider = new \yii\data\ActiveDataProvider( [ "query"=>\app\models\base\NewsTopic::find()->where(['active'=>1, 'topic_id'=>null])->orderBy(["order"=>SORT_ASC]), "pagination" => false ] ); } ?>
# | фото | заголовок | статусы | управление |
---|---|---|---|---|
=$item->id?> | =$item->title?> =$item->description?> |
=$strbage?> |