/** * Lists all Faq models. * @return mixed */ public function actionIndex() { $searchModel = new FaqSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }
public function actionIndex() { $searchModel = new FaqSearch(); $provider = $searchModel->frontendProvider(); return $this->render('index', ['searchModel' => $searchModel, 'provider' => $provider]); }