CHttpException

Запрашиваемая Вами страница не существует.

/var/www/bazametrov/data/www/bazametrov.ru/protected/modules/apartments/controllers/MainController.php(49)

37 
38     public function actionIndex(){
39         throw new CHttpException(404,tc('The requested page does not exist.'));
40     }
41 
42     public function actionView($id = 0, $url = '', $printable = 0,$pdf=0) {
43         //$this->showSearchForm = false;
44         $this->htmlPageId = 'viewlisting';
45         $offer = Apartment::model()->with(array('objType', 'city'))->findByPk($id);
46         if(!$offer || ($offer->owner_active==0 && $offer->active==0 && !isset(Yii::app()->user->id )) || ($offer->owner_active==1 && $offer->active==0 && !isset(Yii::app()->user->id )) 
47             || ($offer->owner_active==1 && $offer->active==2 && !isset(Yii::app()->user->id ))
48         ){//|| $offer->deleted==1
49           throw new CHttpException(404,tc('The requested page does not exist.'));  
50         }
51         $apartment = NULL;
52 
53         $seo = NULL;
54         if( ($id || $url)){
55             $url = $url ? $url : $id;
56             
57             $seo = SeoFriendlyUrl::getForView($url, $this->modelName);
58             if(empty($seo)){
59                 //$offer = Apartment::model()->with(array('windowTo', 'objType', 'city'))->findByPk($id);
60                 $seo=new SeoFriendlyUrl();
61                 $seo->title_ru=$offer->title_ru;

Stack Trace

#16
+
 /var/www/bazametrov/data/www/bazametrov.ru/index.php(166): CApplication->run()
161     return $md->isMobile();
162 }
163 
164 require_once($yii);
165 
166 Yii::createWebApplication($config)->run();
2024-03-19 13:22:31 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.21