Ejemplo n.º 1
0
 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]);
 }
Ejemplo n.º 2
0
 /**
  * Lists all SectionType models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => SectionType::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }