Exemple #1
0
 public static function driversArr()
 {
     return ArrayHelper::map(Drivers::find()->asArray()->all(), 'id', 'name');
 }
Exemple #2
0
 public function actionIndex()
 {
     $model = Drivers::find()->all();
     return $this->render('index', ['model' => $model]);
 }