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