CHttpException

The specified page cannot be found.

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

196         if (Yii::app()->session['_lang'] == 'en')
197         {
198             $this->renderPartial('webroot.themes.theme_en.views.products._loadProducts', $params);
199         }
200         else
201         {
202             $this->renderPartial('webroot.themes.theme_ar.views.products._loadProducts', $params);
203         }
204     }
205 
206     public function actionDetails($id)
207     {
208         throw new CHttpException(404, 'The specified page cannot be found.');
209         $product = Product::model()->findByPk($id);
210         //if ($product )
211         $code = Yii::app()->getRequest()->getParam('CODE');
212         if ($product && ($product->product_is_active == "Yes" || $code == "RAM"))
213         {
214             $relatedSizes = Product::model()->findAll(array('condition' =>
215                 'product_design_code = :CODE AND product_id != :PID',
216                 'order' => 'size_id',
217                 'params' => array('CODE' => $product->product_design_code, 'PID' => $id
218             )));
219             $criteria2 = new CDbCriteria();
220             $criteria2->with = "productStocks";

Stack Trace

#9
+
 /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 11:07:31 Apache Yii Framework/1.1.26