CHttpException

The specified page cannot be found.

/home/spaceidea2/public_html/protected/controllers/ProductsController.php(39)

27         {
28             $this->layout = 'webroot.themes.theme_en.views.layouts.main';
29         }
30         else
31         {
32             $this->layout = 'webroot.themes.theme_ar.views.layouts.main';
33         }
34     }
35 
36     ////////////////////////////////////////////////////////////////////////
37     public function actionIndex()
38     {
39         throw new CHttpException(404, 'The specified page cannot be found.');
40 
41         $subCategoryId = Yii::app()->getRequest()->getParam('sid', 1);
42         $subCategory = ProductSubCategory::model()->findByPk($subCategoryId);
43         $criteria = new CDbCriteria();
44         $criteria->with = array('subCategory', 'productStocks', 'size');
45         $criteria->condition = 'product_is_active = "Yes" AND subCategory.sub_category_id = :SID';
46         $sort = Yii::app()->getRequest()->getQuery('sort', 'recent');
47         $sort = strtolower($sort);
48         $allCategories = ProductSubCategory::model()->findAll(array('condition' => 'sub_category_is_active=1', 'order' => 'sub_category_order ASC'));
49         $allCategoriesId = array();
50         $products = array();
51         $products[$subCategoryId] = array();

Stack Trace

#7
+
 /home/spaceidea2/public_html/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  error_reporting(0);
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-19 12:49:46 Apache Yii Framework/1.1.26