CHttpException

Товар не найден в каталоге

/home/p364072/public_html/protected/controllers/ShopController.php(477)

465     /**
466      * Action show a product page
467      *
468      * @param $id
469      */
470     public function actionProduct($id)
471     {
472         $this->layout = 'product';
473 
474         $product = Product::model()->with(['shortDescription' => ['together' => true]])->findByPk($id);
475 
476         if (!$product || !CityHelper::getCityProductExist($product->id, CityHelper::getCurrentCityID())) {
477             throw new CHttpException(404, 'Товар не найден в каталоге');
478         }
479 
480         if ($product->is_noindex) {
481             $this->noindex = true;
482         }
483 
484         $metadata = $this->resolveMetadata($product);
485 
486         $this->seoTags($metadata);
487 
488         $product->title = CityHelper::applyCityTemplatesStr($product->title);
489 

Stack Trace

#9
+
 /home/p364072/public_html/index.php(111): CApplication->run()
106 HKontur::robots('robots/' . $languageCode . '/' . CITY_PREFIX . '.robots.txt');
107 HKontur::sitemap('sitemap/' . $languageCode . '/' . CITY_PREFIX . '.sitemap.xml');
108 
109 HKontur::checkRedirects();
110 
111 $app->run();
112 
113 if ($localMode || !empty($_GET['test'])) {
114    // echo microtime(true) - $start;
115 }
2024-03-19 14:59:25 LiteSpeed Yii Framework/1.1.18