/**
  * Lists all Article models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new ArticleSearch();
     $dataProvider = $searchModel->search(\App::$app->request->queryParams);
     $arrayCatalog = Article::getArrayCategory();
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Beispiel #2
0
 /**
  * Lists all Section models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new ArticleSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $dataProvider->setSort(new Sort(['defaultOrder' => ['updated_at' => SORT_DESC]]));
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 /**
  * Lists all Article models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new ArticleSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }