Ejemplo n.º 1
0
 public function actionModalGeo()
 {
     $okrugs = FOkrug::find()->all();
     if ($okrug = $this->geo->getOkrug()) {
         $regions = $okrug->region;
     } else {
         $regions = false;
     }
     if ($region = $this->geo->getRegion()) {
         $cityes = $region->city;
     } else {
         $cityes = false;
     }
     return $this->renderPartial('modalGeo', ['okrugs' => $okrugs, 'regions' => $regions, 'cityes' => $cityes]);
 }
Ejemplo n.º 2
0
 public function actionIndex()
 {
     $FOkrug = FOkrug::find()->orderBy('sort, name')->all();
     return $this->render('index', ['okrugs' => $FOkrug]);
 }