예제 #1
0
파일: Drivers.php 프로젝트: fijj/map
 public static function driversArr()
 {
     return ArrayHelper::map(Drivers::find()->asArray()->all(), 'id', 'name');
 }
예제 #2
0
 public function actionIndex()
 {
     $model = Drivers::find()->all();
     return $this->render('index', ['model' => $model]);
 }