PHP error

Non-static method JobClass::getClass() should not be called statically, assuming $this from incompatible context

/www/wwwroot/test2021.125job.com/components/TopsearchWidget.php(84)

72      */
73     protected function showdiqu() {
74         $area = $_GET[area];
75         $area_exp = explode(",", $area);        
76         if(count($area_exp)>1) {           
77             foreach($area_exp as $x=>$list) {
78                 if($list>0) {
79                      $cont .= JobClass::getClass($list).',';             
80                 }
81                 if($x>3) break;
82             }
83         }else if(!empty($area)){
84             $cont = JobClass::getClass($area);
85         }else{
86             $cont = "地区";
87         }
88         return array(
89             "value"=>$funbig,
90             "cont"=>$cont,
91             ); 
92     } 
93     
94     protected function getLink($name = null,$value = null) {
95        $link = array();
96        $linkstr = array('funbig','fun','area','earnings_2','keyword','jobtime','fuli','work_experience','keyword','degree','job_cy_1','sex');

Stack Trace

#0
+
 /www/wwwroot/test2021.125job.com/components/TopsearchWidget.php(43): TopsearchWidget->showdiqu()
38             'jobtime' => $_GET[jobtime], 
39             'keyword'=>$_GET[keyword],   
40             'job_cy_1'=>$_GET[job_cy_1], 
41             'sex'=>$_GET[sex],   
42             //'showhanye'=>$this->showhanye(), 
43             'showdiqu'=>$this->showdiqu(),   
44             'workyear_ary'=>JobCorporationJobs::model()->workyear_ary()      
45         ));
46     }
47     
48     /**
#2
+
 /www/wwwroot/test2021.125job.com/views/jobs/list.php(14): CBaseController->widget("TopsearchWidget", array("channel" => "jobs"))
09 $this->pageDesc = "千里马义乌{$seokeyword}招聘频道为您提供真实有效的义乌{$seokeyword}最新招聘信息,是义乌{$seokeyword}职位的专业提供平台,查找最新的{$seokeyword}招聘{$seokeyword}信息,请到千里马义乌{$seokeyword}招聘频道查找.";
10 $this->canonical = "http://www.125job.com/jobs-".PinyinKeywords::encode($keyword).".html";
11 }
12 
13 $this->topmenuwidget_menuid = 1;
14 $this->widget("TopsearchWidget",array("channel"=>$this->id));
15 ?>
16 <link rel="stylesheet" type="text/css" href="/images/jobs/pages.css" />
17 <div class="jobs-order clearfix">
18     <div class="pull-left">
19         <?
#7
+
 /www/wwwroot/test2021.125job.com/controllers/JobsController.php(380): CController->render("list", array("model" => array(), "pages" => CPagination, "order" => 0, "rightad" => array(Adservice, Adservice, Adservice, Adservice, ...), ...))
375         if($i<2) throw new CHttpException(500,"请选择2-4个职位对比!"); 

376         //echo $sqlcont;

377         $model = JobCorporationJobs::model()->findAll(array(

378             "condition"=>"is_stop=0 and ({$sqlcont})",

379             ));

380         

381         $this->render($this->action->id,array(

382             'model' => $model,

383             ));

384     }

385     

2024-03-29 05:01:17 nginx/1.17.8 Yii Framework/1.1.20