Error

Non-static method CHttpRequest::getParam() cannot be called statically

/home2/minasnev/public_html/digiinteracts.co.uk/protected/controllers/SiteController.php(372)

360         //var_dump($varCategoryId); die;
361         if ($varCategoryId == $id) {
362             $objModel13 = DigiCaseStudiesBannerText::model()->findByAttributes(array('title' => $category, 'status' => 1));
363             $this->render('client', array('objModel13' => $objModel13));
364         } else {
365 
366             $this->render('casestudies');
367         }
368     }
369 
370     public function actionservices() {
371 
372         $varCategoryId = CHttpRequest::getParam('id');
373         //$varSubCategoryId = CHttpRequest::getParam('s');
374         //$varUrl = CHttpRequest::getParam('url');
375         $category = ucwords(str_replace('-', " ", $varCategoryId));
376         //$urlcategory = ucwords(str_replace('-'," ",$varSubCategoryId));
377         //print_r($category); die;
378         $catKey = "";
379         if (in_array($category, Yii::app()->params['arrCategory12'])) {
380             foreach (yii::app()->params['arrCategory12'] as $key => $val) {
381                 if ($category == $val)
382                     $catKey = $key;
383                 //print_r($key); 
384             }

Stack Trace

#7
+
 /home2/minasnev/public_html/digiinteracts.co.uk/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();
2024-03-28 15:52:40 Apache Yii Framework/1.1.15