public function getdropColeccion() { $data = Coleccion::find()->asArray()->all(); return ArrayHelper::map($data, 'id', 'nombre'); }
/** * Lists all Coleccion models. * @return mixed */ public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => Coleccion::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }