PHP error

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

/home/fturbo/public_html/themes/fturbo/views/products/view.php(106)

094 <div class="row">
095     <div class="col-md-12 product-info">
096         <div class="col-md-6 col-xs-6">
097             <div class="left-content background-red">Turbó kódok</div>
098         </div>
099         <div class="col-md-6 col-xs-6">
100             <div class="right-content background-red">Gyártó kódok</div>
101         </div>
102     </div>
103     <div class="col-md-12 product-info">
104         <div class="col-md-6 col-xs-6">
105             <?php
106             foreach (Products::getSpecificationsByProductID($model->product_id, 1) as $cikkszam) { ?>
107                 <div class="left-content"><?= $cikkszam->title; ?></div>
108                 <?php
109             }
110             ?>
111         </div>
112         <div class="col-md-6 col-xs-6">
113 
114             <?php
115             foreach (Products::getSpecificationsByProductID($model->product_id, 2) as $motorszam) { ?>
116                 <div class="right-content"><?= $motorszam->title; ?></div>
117             <?php } ?>
118         </div>

Stack Trace

#4
+
 /home/fturbo/public_html/protected/controllers/ProductsController.php(102): CController->render("view", array("model" => Products, "typeID" => "2072", "productID" => "55"))
097 
098         $this->render('view', array(
099             'model' => $model,
100             'typeID' => $typeID,
101             'productID' => $productID,
102         ));
103     }
104 
105     public function actionIndex()
106     {
107         $meta = Meta::model()->findByPk(11);
#17
+
 /home/fturbo/public_html/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
16 
2024-03-28 22:45:32 Apache Yii Framework/1.1.10