/** * @return string */ public function actionList() { $model = new CommentSearch(); $dataProvider = $model->search(\Yii::$app->request->queryParams); return $this->render('list', ['searchModel' => $model, 'dataProvider' => $dataProvider]); }
/** * 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]); }