public function SetregionAction() { if (isset($_GET['id'])) { $this->region_id = intval(Request::get('id', 0)); setcookie('region_id', $this->region_id, time() + 3600, '/'); $this->IndexAction(); } else { $regions = RegionModel::GetAll()->all('ORDER BY `name`'); $this->render('setregion', ['regions' => $regions]); } }
public function RegionAction() { $regions = RegionModel::GetAll()->all('ORDER BY `name`'); $this->render('region', ['regions' => $regions]); }