Error

Call to undefined method Products::getListActive()

/home/hpmn/domains/hoaphatmiennam.com/public_html/protected/controllers/ProductsController.php(6)

01 <?php
02 class ProductsController extends FrontController
03 {
04     public function actionIndex() {
05         $this->pageTitle = 'Sản phẩm - ' . Yii::app()->setting->getItem('defaultPageTitle');
06         $model = Products::getListActive();
07         $this->render('index', array(
08             'model' => $model
09         ));
10     }    
11     
12     
13     public function actionSearch($keyword) {   
14         $this->pageTitle = 'Tìm kiếm - ' . Yii::app()->setting->getItem('defaultPageTitle');
15         $model = Products::searchFe($keyword);
16         $this->render('search', array(
17             'model' => $model
18         ));

Stack Trace

#12
+
 /home/hpmn/domains/hoaphatmiennam.com/public_html/index.php(30): CApplication->run()
25 // remove the following lines when in production mode
26 
27 require_once($yii);
28 Yii::createWebApplication($config);
29 SettingForm::applySettings();//override settings by values from database
30 Yii::app()->run();
2024-03-29 01:07:49 Apache Yii Framework/1.1.14