/** * Lists all Lead models. * @return mixed */ public function actionIndex() { $searchModel = new LeadSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }
public function actionIndex() { $leadSearch = new LeadSearch(); $activeDataProvider = $leadSearch->search(Yii::$app->request->get()); return $this->render("index", ["dataProviders" => ["leadSearch" => $leadSearch, "activeDataProvider" => $activeDataProvider]]); }