PHP notice

Undefined variable: jid

/var/www/vhosts/znuweb/protected/views/page/topiccontent.php(33)

21 $result2=$command->queryAll();
22 $count = count ( $result2 );
23 */
24 
25 $tpc=$model->topicid;
26 $criteria = new CDbCriteria();
27 $criteria->select = 'jid,sid,title,summary,timeFa,timeEn,counter,storyimage';
28         $criteria->order = 'timeEn DESC';
29                 
30     //if ($tpc!="" and $jurl!='znuportal' AND $jurl!='news')
31     //    {
32 $criteria->condition = 'jid=:jid AND topic=:tpc and topic!=30';
33 $criteria->params = array(':jid'=>$jid,':tpc'=>$tpc);
34 
35 $result = NewsContent::model() -> findAll($criteria);        
36 //echo "<center><font color=#016DA0><b>اخبار". $tpcmodel->topictext."</b></font></center><br>\n";
37         
38   echo '<div class="container"><div class="row justify-content-center"><div class="col-lg-7 col-md-8"><h4 style="text-align: right; font-size: 25px;">آخرین مطالب با موضوع: '. $model->topictext.' </h4></div></div>'; 
39 //}
40 
41 
42 /*
43                 $result = new NewsContent;
44                 $result->unsetAttributes();
45                 $result->jid = $id2;

Stack Trace

#4
+
 /var/www/vhosts/znuweb/protected/controllers/PageController.php(2158): CController->render("topiccontent", array("model" => ZuTopics))
2153 $this->sub = $sub;
2154 //MMMMMMMMmm
2155       // $model2 = EntityContent::model()->findByPk($id);
2156         $this->render('topiccontent',array(
2157             'model'=>$model,
2158         ));
2159         }
2160         else
2161             throw new CHttpException(404,'The requested page does not exist.');
2162         //return $model;
2163 }//if (  is_numeric($id) AND $id!=NULL )
#18
+
 /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-22 12:57:13 Apache Yii Framework/1.1.14