Пример #1
0
 /**
  * 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]);
 }
 public function actionIndexVirtual()
 {
     $searchModel = new InTrunkgroupSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index_virtual', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }