Error

Undefined constant "COUNTRY_ID"

/mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/ListController.php(295)

283         {
284             $search         = getValue( "search" );
285             $selectedOption = getValue( "searchOption" );
286             
287             $condition = addSearchOptionsToCondition( $condition, $search );
288             
289             $this->data["search"] = $search;
290         }
291     }
292     
293     protected function getCounties( $type )
294     {
295         $countryId  = COUNTRY_ID;
296         $page       = Yii::app()->getRequest()->getQuery( "page" );
297         if( empty( $page ) )
298         {
299             $page = 0;
300         }
301         
302         $country = CountriesModel::model()->findByPk( $countryId );
303         if( ! $country )
304         {
305             setMessage( translate( "Country_does_not_exists" ), "error" );
306         }
307         

Stack Trace

#0
+
 /mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/ListController.php(92): ListController->getCounties()
87         $this->getState( BUSINESS_TYPE_BUSINESS );
88     }
89 
90     public function actionBusinessCounties()
91     {
92         $this->getCounties( BUSINESS_TYPE_BUSINESS );
93     }
94     
95     public function actionBusinessCounty()
96     {
97         $this->getCounty( BUSINESS_TYPE_BUSINESS );
#13
+
 /mnt/HC_Volume_23321257/focusextranet/public_html/index.php(32): CApplication->run()
27 define( "LANGUAGE_PATH", BASE_PATH."protected/languages/" );
28 
29 date_default_timezone_set( "Europe/Berlin" );
30 
31 require_once( $yii );
32 Yii::createWebApplication( $config )->run();
2024-03-28 09:51:30 Apache Yii Framework/1.1.10