CHttpException

Такой страницы не существует

/var/www/magicmedia.uz/data/www/magicmedia.uz/protected/controllers/ServicesController.php(29)

17             $static_page->status = 1;
18             $static_page->save();
19         }
20 
21         $services = Service::model()->findAllByAttributes(['status' => 1]);
22         $this->render('index', array('static_page' => $static_page, 'services' => $services));
23     }
24 
25     public function actionShow($url) {
26         $url = CHtml::encode($url);
27         $service = Service::model()->findByAttributes(array('url' => $url));
28         if ($service === null)
29             throw new CHttpException(404, Yii::t("translation", "the_requested_page_does_not_exist"));
30 
31         $service->views_count = $service->views_count + 1;
32         $service->saveAttributes(array('views_count'));
33 
34         $this->pageTitle = empty($service->seo_title) ? $service->title : $service->seo_title;
35         $this->pageDescription = $service->seo_description;
36         $this->pageKeywords = $service->seo_keywords;
37         $this->breadcrumbs = array(
38             Yii::t("translation", "services") => array('services/index'),
39             $service->title
40         );
41 

Stack Trace

#9
+
 /var/www/magicmedia.uz/data/www/magicmedia.uz/index.php(16): CApplication->run()
11 defined('YII_DEBUG') or define('YII_DEBUG', true);
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
14 
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
2024-03-29 02:20:11 Apache/2.4.56 (Debian) Yii Framework/1.1.21