public function actionIndex() { $dataProviderMedia = new ActiveDataProvider(['query' => MediaType::find()]); $dataProviderProject = new ActiveDataProvider(['query' => ProjectType::find()]); $dataProviderSection = new ActiveDataProvider(['query' => SectionType::find()]); return $this->render('index', ['dataProviderMedia' => $dataProviderMedia, 'dataProviderProject' => $dataProviderProject, 'dataProviderSection' => $dataProviderSection]); }
/** * Lists all ProjectType models. * @return mixed */ public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => ProjectType::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }