/** * Displays a single Virtual model. * @param integer $id * @return mixed */ public function actionView($id) { $searchModelPrefix = new PrefixSearch(); $dataProviderPrefix = $searchModelPrefix->searchVirtual(Yii::$app->request->queryParams); $searchModelInTrunkgroup = new InTrunkgroupSearch(); $dataProviderInTrunkgroup = $searchModelInTrunkgroup->searchVirtual(Yii::$app->request->queryParams); $searchModelOutTrunkgroupVirtual = new OutTrunkgroupVirtualSearch(); $dataProviderOutTrunkgroupVirtual = $searchModelOutTrunkgroupVirtual->searchVirtual(Yii::$app->request->queryParams); $searchModelOutTrunkgroupPrefix = new OutTrunkgroupPrefixSearch(); $dataProviderOutTrunkgroupPrefix = $searchModelOutTrunkgroupPrefix->searchVirtual(Yii::$app->request->queryParams); $searchModelSubsgroup = new SubsgroupSearch(); $dataProviderSubsgroup = $searchModelSubsgroup->searchVirtual(Yii::$app->request->queryParams); return $this->render('view', ['model' => $this->findModel($id), 'searchModelPrefix' => $searchModelPrefix, 'dataProviderPrefix' => $dataProviderPrefix, 'searchModelInTrunkgroup' => $searchModelInTrunkgroup, 'dataProviderInTrunkgroup' => $dataProviderInTrunkgroup, 'searchModelOutTrunkgroupVirtual' => $searchModelOutTrunkgroupVirtual, 'dataProviderOutTrunkgroupVirtual' => $dataProviderOutTrunkgroupVirtual, 'searchModelOutTrunkgroupPrefix' => $searchModelOutTrunkgroupPrefix, 'dataProviderOutTrunkgroupPrefix' => $dataProviderOutTrunkgroupPrefix, 'searchModelSubsgroup' => $searchModelSubsgroup, 'dataProviderSubsgroup' => $dataProviderSubsgroup]); }
/** * Lists all Prefix models. * @return mixed */ public function actionIndex() { $searchModel = new PrefixSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }