Ejemplo n.º 1
0
 public function actionIndex()
 {
     //        return $this->render('index');
     $searchTransport = new TransportSearch();
     $dataProviderTransport = $searchTransport->search(Yii::$app->request->queryParams);
     $searchGoods = new GoodsSearch();
     $dataProviderGoods = $searchGoods->search(Yii::$app->request->queryParams);
     $searchTender = new TenderSearch();
     $dataProviderTender = $searchTender->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchTransport' => $searchTransport, 'dataProviderTransport' => $dataProviderTransport, 'searchGoods' => $searchGoods, 'dataProviderGoods' => $dataProviderGoods, 'searchTender' => $searchTender, 'dataProviderTender' => $dataProviderTender]);
 }
Ejemplo n.º 2
0
 /**
  * Lists all Tender models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new TenderSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }