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]); }
/** * 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]); }