Exemplo n.º 1
0
Arquivo: Drivers.php Projeto: fijj/map
 public static function driversArr()
 {
     return ArrayHelper::map(Drivers::find()->asArray()->all(), 'id', 'name');
 }
Exemplo n.º 2
0
 public function actionIndex()
 {
     $model = Drivers::find()->all();
     return $this->render('index', ['model' => $model]);
 }