/**
  * Lists all QuotaType models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => QuotaType::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }
Example #2
0
 public function getQuotaTypeAllForSelect()
 {
     $QuotaType = QuotaType::find()->All();
     return ArrayHelper::map($QuotaType, 'id', 'name');
 }