Beispiel #1
0
 public function actionIndex()
 {
     $searchModel = new ArtikelSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Beispiel #2
0
 public function actionIndex()
 {
     $searchModel = new ArtikelSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'mostComment' => $searchModel->komentarTerbanyak(20)]);
 }