Error

Undefined class constant 'TYPE_NOT_FOUND'

/home2/pinnacle/public_html/pinnacle.ph/protected/components/Controller.php(69)

57         $next = (($_currentPage +1) <= $_lastPage) ? ($_currentPage +1) : null;
58         
59         return array(
60             'current_page' => $_currentPage,
61             'prevlink' => ($prev !== null) ? Url::cluster($permalink."?page=".$prev) : null,
62             'nextlink' => ($next !== null) ? Url::cluster($permalink."?page=".$next) : null,
63         );        
64     }
65     
66     public function actionPageNotFound(){
67         $model = new Error;
68         $model->url = Yii::app()->request->url;
69         $model->type = Error::TYPE_NOT_FOUND;
70         $model->time = time();
71         @$model->ip = CHttpRequest::getUserHostAddress();
72         $model->referer = Yii::app()->user->getState(SESS_SOURCE_DOMAIN);
73         $model->save();
74         header("HTTP/1.0 404 Not Found");
75         $this->render('//site/notfound',array());
76     }
77     
78 }

Stack Trace

#0
+
 /home2/pinnacle/public_html/pinnacle.ph/protected/controllers/CmsController.php(146): Controller->actionPageNotFound()
141     public function actionCategory($permalink = null){
142         
143         
144         $record = Cms::model()->find(array('condition'=>'permalink = :permalink', 'params' => array(':permalink' => $permalink)));
145         if($record == null){
146             $this->actionPageNotFound();
147             Yii::app()->end();
148         }
149         
150         if($record->type != Cms::TYPE_CATEGORY){
151             //Forwarding Path: [property/cluster] ==> [property/single] ==> [cms/category] ==> [cms/view]
#14
+
 /home2/pinnacle/public_html/pinnacle.ph/protected/controllers/PropertyController.php(116): CController->forward("cms/category/permalink/condo-egi-rufino-towers-taft-ave-pasay-sa...")
111                     
112                 }
113                 
114             }else{
115                 //Forwarding Path: [property/cluster] ==> [property/single] ==> [cms/category] ==> [cms/view]
116                 $this->forward("cms/category/permalink/".$permalink);
117             }
118         }else{
119             $this->actionPageNotFound();
120             Yii::app()->end();
121         }
#28
+
 /home2/pinnacle/public_html/pinnacle.ph/protected/controllers/PropertyController.php(261): CController->forward("property/single/permalink/condo-egi-rufino-towers-taft-ave-pasay...")
256             
257         }
258         //else forward to property
259         else{
260             //Forwarding Path: [property/cluster] ==> [property/single] ==> [cms/category] ==> [cms/view]
261             $this->forward("property/single/permalink/".$permalink);
262         }
263         
264     }
265     
266     
2024-03-28 09:33:40 Apache Yii Framework/1.1.14