예제 #1
0
 public function getLocationList()
 {
     $location = Locations::find()->all();
     return ArrayHelper::map($location, 'id', 'name');
 }