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