public function actionCountry() { if (!empty($_GET["slug"])) { $class = $this->classCountry; $model = $class::fetchBySlug(trim($_GET["slug"])); if ($model->id > 0) { // Логируем просмотры стран и категорий для туров if (Yii::app()->controller->getId() == "tours") { LogHelper::saveCatLogCountry($model->id); LogHelper::saveCatLogParams(0, 1); } unset($_GET["slug"]); $_GET["country_id"] = $model->id; } } $this->actionIndex(); }