PHP warning

Missing argument 2 for LinkTabelStatisController::loadModel(), called in /data03/aceh.bps.go.id/htdocs/protected/controllers/LinkTabelStatisController.php on line 81 and defined

/data03/aceh.bps.go.id/htdocs/protected/controllers/LinkTabelStatisController.php(97)

085     public function actionExcel($id,$tipe_,$lang_) 
086     {  
087         $this->updateHitDownload($id,$tipe_,$lang_);
088     }
089     
090     /**
091      * Returns the data model based on the primary key given in the GET variable.
092      * If the data model is not found, an HTTP exception will be raised.
093      * @param integer $id the ID of the model to be loaded
094      * @return LinkTabelStatis the loaded model
095      * @throws CHttpException
096      */
097     public function loadModel($id,$tgl,$bln,$thn)
098     {
099         //$model=Publikasi::model()->findByPk($id);
100         $tgl=$thn.'-'.$bln.'-'.$tgl;
101         $criteria = new CDbCriteria();
102         $criteria->condition = 'id_link_tabel_statis = :_id AND tgll_buat= :tgl AND tampil=1';
103         $criteria->params = array(':_id' => $id,':tgl'=>$tgl);
104 
105         //query items
106         $model = LinkTabelStatis::model()->find($criteria);    
107 
108         if($model===null)
109             throw new CHttpException(404,'The requested page does not exist.');

Stack Trace

#0
+
 /data03/aceh.bps.go.id/htdocs/protected/controllers/LinkTabelStatisController.php(81): LinkTabelStatisController->loadModel("67")
76 
77     public function actionPrint($id) 
78     { 
79         $this->layout ='//layouts/mobile/plain';
80         $this->render('print',array(
81             'model'=>$this->loadModel($id),
82         ));
83        // $this->render('print'); 
84     }
85     public function actionExcel($id,$tipe_,$lang_) 
86     {  
#15
+
 /data03/aceh.bps.go.id/htdocs/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',TRUE);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
15 ?>
2024-03-29 02:07:28 Apache/2.4.6 (CentOS) PHP/5.6.37 Yii Framework/1.1.12