コード例 #1
0
 /**
  * Открыть документ Заявка на оборудование.
  * @param integer $id
  * @return mixed
  */
 public function actionView($id)
 {
     $dedSearch = new DtEnquiryDevicesSearch();
     $dedProvider = $dedSearch->search(Yii::$app->request->queryParams);
     return $this->render('view', ['model' => $this->findModel($id), 'dedSearch' => $dedSearch, 'dedProvider' => $dedProvider]);
 }
コード例 #2
0
 /**
  * Lists all DtEnquiryDevices models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new DtEnquiryDevicesSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }