Beispiel #1
0
 /**
  * @return string
  */
 public function actionList()
 {
     $model = new CommentSearch();
     $dataProvider = $model->search(\Yii::$app->request->queryParams);
     return $this->render('list', ['searchModel' => $model, 'dataProvider' => $dataProvider]);
 }
Beispiel #2
0
 /**
  * Lists all Comment models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new CommentSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }