PHP notice

Use of undefined constant news - assumed 'news'

/var/www/vhosts/znuweb/protected/controllers/PgController.php(127)

115         if ($model!=NULL)
116         {
117     /*   if(  (isset(Yii::app()->request->cookies['lang']))  and  ( (Yii::app()->request->cookies['lang']->value=='fa') OR  (Yii::app()->request->cookies['lang']->value=='en') ) )
118           { 
119           $language = Yii::app()->request->cookies['lang']->value;
120           }
121             else
122           { 
123           Yii::app()->request->cookies['lang'] = new CHttpCookie('lang',$qjrnl->lang1);
124           $language = $qjrnl->lang1;
125           }
126 */
127         if( $jrnl==news OR ($jrnl!=news AND ($model->jid==$id2 or $model->jid2==$id2 or $model->j->parent_idjrnl==$id2))    )
128         {
129           if ($lang=='en' AND $qjrnl->activeEn!=0)
130           {
131 $this->title_meta=$model->titleEn;
132 $this->content_meta=$model->summaryEn;
133 
134               Yii::app()->request->cookies['lang'] = new CHttpCookie('lang',$lang);
135           $this->layout = '//layouts/'.$qjrnltm->theme_address.'/main_'.$lang.'_blank';
136           }
137           else if ($qjrnl->activeFa!=0)
138           {
139 $this->title_meta=$model->title;

Stack Trace

#13
+
 /var/www/vhosts/znuweb/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2025-02-07 16:23:06 Apache Yii Framework/1.1.14