CHttpException

/var/www/geliostd.ru/protected/controllers/CatalogController.php(467)

455                                 $criteria->addCondition("format_id = " . $object->id);
456                                 $found_parts++;
457                                 $title          .= (!$title ? 'Формат ' : ' формат ') . $object->name;
458                                 $format_bread[] = $object;
459                             }
460                         }
461                     }
462                 }
463                 if (count($parts) == 1 && !$found_parts && $this->getUriSegment(2) != "") {
464                     throw new CHttpException(404);
465                 }
466                 if ($found_parts < count($parts) && count($parts) > 1) {
467                     throw new CHttpException(404);
468                 }
469                 if ($sub_category) {
470                     $criteria->addCondition($sub_category);
471                 } elseif ($main_category) {
472                     $criteria->addCondition($main_category);
473                 }
474                 if ($this->InStock()) {
475                     $criteria->addCondition("status_id = 1");
476                 }
477                 $order = Yii::app()->request->getParam("order", '');
478                 $way   = Yii::app()->request->getParam("way", "asc");
479 

Stack Trace

#9
+
 /var/www/geliostd.ru/index.php(19): CApplication->run()
14 //    defined('YII_DEBUG') or define('YII_DEBUG', false);
15 //    defined('YII_DEBUG_SHOW_PROFILER') or define('YII_DEBUG_SHOW_PROFILER', false);
16 //}
17 
18 require_once($yii);
19 Yii::createWebApplication($config)->run();
2024-03-28 17:58:32 nginx/1.19.5 Yii Framework/1.1.20