Exemplo n.º 1
0
 public function setProviders()
 {
     $providers = Providers::find()->all();
     foreach ($providers as $objProvider) {
         $this->_providers[] = $objProvider->getOptionsToArray();
     }
 }
 /**
  * Lists all Providers models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => Providers::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }