/home/homepublic_html/protected/modules/backoffice/modules/shop/components/ShopUrlRule.php(25)
13 $params = '?' . http_build_query($params); 14 } else { 15 $params = '?'; 16 } 17 return "/$url" . $params; 18 } 19 20 return false; // не применяем данное правило 21 } 22 23 public function parseUrl($manager, $request, $pathInfo, $rawPathInfo) { 24 25 $groupId = Yii::app()->db->createCommand()->select('id')->from(ProductGroup::model()->tableName())->where("url = '$pathInfo'")->andWhere("url != ''")->queryScalar(); 26 if($groupId) { 27 return '/shop/search/group/' . $groupId; 28 } 29 return false; // не применяем данное правило 30 } 31 32 }
#0 |
+
–
/home/homepublic_html/frameworks/yii/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/home/homepublic_html/frameworks/yii/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/homepublic_html/frameworks/yii/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/home/homepublic_html/frameworks/yii/base/CModule.php(103): CModule->getComponent("db") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
#4 |
+
–
/home/homepublic_html/protected/modules/backoffice/modules/shop/components/ShopUrlRule.php(25): CModule->__get("db") 20 return false; // не применяем данное правило 21 } 22 23 public function parseUrl($manager, $request, $pathInfo, $rawPathInfo) { 24 25 $groupId = Yii::app()->db->createCommand()->select('id')->from(ProductGroup::model()->tableName())->where("url = '$pathInfo'")->andWhere("url != ''")->queryScalar(); 26 if($groupId) { 27 return '/shop/search/group/' . $groupId; 28 } 29 return false; // не применяем данное правило 30 } |
#5 |
+
–
/home/homepublic_html/frameworks/yiistrong>->parseUrl(CUrlManager, CHttpRequest, "konvert-s-komplektom-na-vypisku", "konvert-s-komplektom-na-vypisku") 367 $pathInfo=$this->removeUrlSuffix($rawPathInfo,$this->urlSuffix); 368 foreach($this->_rules as $i=>$rule) 369 { 370 if(is_array($rule)) 371 $this->_rules[$i]=$rule=Yii::createComponent($rule); 372 if(($r=$rule->parseUrl($this,$request,$pathInfo,$rawPathInfo))!==false) 373 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r; 374 } 375 if($this->useStrictParsing) 376 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 377 array('{route}'=>$pathInfo))); |
#6 |
+
–
/home/homepublic_html/frameworks/yiistrong>->parseUrl(CHttpRequest) 135 $route=$this->catchAllRequest[0]; 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. |
#7 |
+
–
/home/homepublic_html/frameworks/yii/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#8 |
+
–
/home/homepublic_html/index.php(540): CApplication->run() 535 public static function app(){ 536 return parent::app(); 537 } 538 } 539 540 Yii::createWebApplication($configFile)->run(); 541 |