/** * Renders AddonCategory grid * @return string */ public function actionIndex() { $searchModel = new AddonCategory(); $params = Yii::$app->request->get(); $dataProvider = $searchModel->search($params); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }