/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
#0 |
unknown(0): ShopController->actionProduct(71)
|
#1 |
+
–
/home/p364072/yii/yiilite.php(4160): ReflectionMethod->invokeArgs(ShopController, array(71)) 4155 elseif($param->isDefaultValueAvailable()) 4156 $ps[]=$param->getDefaultValue(); 4157 else 4158 return false; 4159 } 4160 $method->invokeArgs($object,$ps); 4161 return true; 4162 } 4163 } 4164 class CInlineAction extends CAction 4165 { |
#2 |
+
–
/home/p364072/yii/yiilite.php(4177): CAction->runWithParamsInternal(ShopController, ReflectionMethod, array("id" => 71)) 4172 { 4173 $methodName='action'.$this->getId(); 4174 $controller=$this->getController(); 4175 $method=new ReflectionMethod($controller, $methodName); 4176 if($method->getNumberOfParameters()>0) 4177 return $this->runWithParamsInternal($controller, $method, $params); 4178 $controller->$methodName(); 4179 return true; 4180 } 4181 } 4182 class CWebUser extends CApplicationComponent implements IWebUser |
#3 |
+
–
/home/p364072/yii/yiilite.php(3691): CInlineAction->runWithParams(array("id" => 71)) 3686 { 3687 $priorAction=$this->_action; 3688 $this->_action=$action; 3689 if($this->beforeAction($action)) 3690 { 3691 if($action->runWithParams($this->getActionParams())===false) 3692 $this->invalidActionParams($action); 3693 else 3694 $this->afterAction($action); 3695 } 3696 $this->_action=$priorAction; |
#4 |
+
–
/home/p364072/yii/yiilite.php(3676): CController->runAction(CInlineAction) 3671 $this->missingAction($actionID); 3672 } 3673 public function runActionWithFilters($action,$filters) 3674 { 3675 if(empty($filters)) 3676 $this->runAction($action); 3677 else 3678 { 3679 $priorAction=$this->_action; 3680 $this->_action=$action; 3681 CFilterChain::create($this,$action,$filters)->run(); |
#5 |
+
–
/home/p364072/yii/yiilite.php(3666): CController->runActionWithFilters(CInlineAction, array()) 3661 { 3662 if(($parent=$this->getModule())===null) 3663 $parent=Yii::app(); 3664 if($parent->beforeControllerAction($this,$action)) 3665 { 3666 $this->runActionWithFilters($action,$this->filters()); 3667 $parent->afterControllerAction($this,$action); 3668 } 3669 } 3670 else 3671 $this->missingAction($actionID); |
#6 |
+
–
/home/p364072/yii/yiilite.php(1775): CController->run("product") 1770 { 1771 list($controller,$actionID)=$ca; 1772 $oldController=$this->_controller; 1773 $this->_controller=$controller; 1774 $controller->init(); 1775 $controller->run($actionID); 1776 $this->_controller=$oldController; 1777 } 1778 else 1779 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1780 array('{route}'=>$route===''?$this->defaultController:$route))); |
#7 |
+
–
/home/p364072/yii/yiilite.php(1695): CWebApplication->runController("shop/product") 1690 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1691 $_GET[$name]=$value; 1692 } 1693 else 1694 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1695 $this->runController($route); 1696 } 1697 protected function registerCoreComponents() 1698 { 1699 parent::registerCoreComponents(); 1700 $components=array( |
#8 |
+
–
/home/p364072/yii/yiilite.php(1212): CWebApplication->processRequest() 1207 public function run() 1208 { 1209 if($this->hasEventHandler('onBeginRequest')) 1210 $this->onBeginRequest(new CEvent($this)); 1211 register_shutdown_function(array($this,'end'),0,false); 1212 $this->processRequest(); 1213 if($this->hasEventHandler('onEndRequest')) 1214 $this->onEndRequest(new CEvent($this)); 1215 } 1216 public function end($status=0,$exit=true) 1217 { |
#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 } |