Exemplo 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]);
 }
Exemplo n.º 2
0
 /**
  * Lists all Transport models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new TransportSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }