Error

Undefined class constant 'TYPE_OLD_CAT'

/home2/pinnacle/public_html/pinnacle.ph/protected/controllers/PropertyController.php(426)

414                 
415                 if(isset($_GET['type']) && isset($_GET['subtype']) && isset($_GET['province']) && isset($_GET['page'])){
416                     $type = $this->_unStripURLItem($_GET['type']);
417                     $subtype = $this->_unStripURLItem($_GET['subtype']);
418                     $province = $this->_unStripURLItem($_GET['province']);
419                     $city = isset($_GET['city']) ? $this->_unStripURLItem($_GET['city']) : "";
420                     
421                     $cityprovince = $city." ".$province;
422                     
423                     //record this request in the error table
424                     $model = new Error;
425                     $model->url = Yii::app()->request->url;
426                     $model->type = Error::TYPE_OLD_CAT;
427                     $model->time = time();
428                     @$model->ip = CHttpRequest::getUserHostAddress();
429                     $model->referer = Yii::app()->user->getState(SESS_SOURCE_DOMAIN);
430                     $model->save();
431                     
432                     
433                     if($_GET['command'] == 1){
434                         $this->redirect(Url::search()."?saletype=&what=".$type."&where=", true, 301);
435                     }else
436                     if($_GET['command'] == 2){                            
437                         $this->redirect(Url::search()."?saletype=&what=".$subtype."&where=", true, 301);
438                     }else

Stack Trace

#12
+
 /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-18 22:12:23 Apache Yii Framework/1.1.14