public function actionArchive($tag = null)
 {
     $searchModel = new NewsSearch();
     //        $searchModel->visibility=News::VISIBILITY_ARCHIVE;
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('archive', array('searchModel' => $searchModel, 'dataProvider' => $dataProvider));
 }
 /**
  * Renders the index view for the module
  * @return string
  */
 public function actionIndex()
 {
     $searchModel = new NewsSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }