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]); }
public function actionIndex() { $FOkrug = FOkrug::find()->orderBy('sort, name')->all(); return $this->render('index', ['okrugs' => $FOkrug]); }