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(124): Controller->actionPageNotFound()
119                     $this->render('enews',array('page'=>$page));
120                 }else{
121                     $this->render('single',array('page'=>$page));
122                 }
123             }else{
124                 $this->actionPageNotFound();
125                 Yii::app()->end();
126             }
127         }else{
128             $this->actionPageNotFound();
129             Yii::app()->end();
#1
+
 /home2/pinnacle/public_html/pinnacle.ph/protected/controllers/CmsController.php(152): CmsController->actionSingle("articles/village-manager-pampanga-based")
147             Yii::app()->end();
148         }
149         
150         if($record->type != Cms::TYPE_CATEGORY){
151             //Forwarding Path: [property/cluster] ==> [property/single] ==> [cms/category] ==> [cms/view]
152             $this->actionSingle($permalink);
153             Yii::app()->end();
154         }
155         
156         $criteria = unserialize($record->cdbcriteria);
157         
#16
+
 /home2/pinnacle/public_html/pinnacle.ph/index.php(30): CApplication->run()
25 
26 
27 
28 require_once($yii);
29 
30 Yii::createWebApplication($config)->run();
2024-03-28 16:36:49 Apache Yii Framework/1.1.14