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