コード例 #1
0
ファイル: Drivers.php プロジェクト: fijj/map
 public static function driversArr()
 {
     return ArrayHelper::map(Drivers::find()->asArray()->all(), 'id', 'name');
 }
コード例 #2
0
ファイル: DriversController.php プロジェクト: fijj/map
 public function actionIndex()
 {
     $model = Drivers::find()->all();
     return $this->render('index', ['model' => $model]);
 }