예제 #1
0
파일: Geo.php 프로젝트: a7000q/yasvoboden
 public function getRegion()
 {
     if ($this->id_region) {
         return FRegion::findOne($this->id_region);
     } else {
         return false;
     }
 }
예제 #2
0
 public function actionIndexCity($id)
 {
     $FCity = FCity::find()->where(["id_region" => $id])->orderBy('sort, name')->all();
     $FRegion = FRegion::findOne($id);
     return $this->render('indexCity', ['cityes' => $FCity, 'region' => $FRegion]);
 }