CHttpException

/var/www/agada/data/www/agada.pro/protected/controllers/DoctorsController.php(66)

54         $finder = Doctors::model();
55 
56         $section = Section::model()->getItemByPath(Y::getGet('path'));
57         if (!$section) {
58             throw new CHttpException(404);
59         }
60         Section::$current = $section->id;
61         $this->blocks = $section->side_blocks;
62 
63         $model = $finder->find("url_alias=:url_alias", array(":url_alias" => $url_alias));
64 
65         if (!$model) {
66             throw new CHttpException(404);
67         }
68 
69         if(Y::getGet('path') != $section->getPath()){
70             $this->redirect($model->getUrl());
71         }
72 
73         $finder::$current = $model->id;
74         Gallery::insertGalleries($model);
75 
76         $this->breadcrumbs = $section->getBreadcrumbs(true);
77         $this->breadcrumbs[] = $model->name;
78         $this->setMeta($model);

Stack Trace

#9
+
 /var/www/agada/data/www/agada.pro/index.php(17): CApplication->run()
12     ini_set('display_errors','On');
13     error_reporting(E_ALL);
14 }
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-28 21:49:28 Apache/2.4.56 (Debian) Yii Framework/1.1.16