/var/www/textile_club/http/protected/services/SeoFiltersService.php(48)
36 $join = "LEFT JOIN categories c2 ON c2.id = c.category"; 37 } 38 39 $query = " 40 SELECT ci.id ci_id, c.id c_id, ci.sort sort, c.sort sort2, ci.code as code 41 FROM catalogitems ci 42 LEFT JOIN catalogs c ON c.id = ci.catalog 43 $join 44 WHERE $where ci.code = '$filterCode' AND c.seo = 1 45 ORDER BY c.sort ASC, ci.sort ASC 46 "; 47 48 if (!$filter = Yii::app()->db->createCommand($query)->queryRow()) { 49 $this->errors[] = "Filter with code = $filterCode not found"; 50 break; 51 } 52 53 $this->filters[$filterCode] = $filter; 54 } 55 56 if ($category && $filters && !$this->errors) { 57 $this->createSeoPage($filters, $category); 58 } 59 } 60
#0 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/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 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/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 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/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 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/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 |
+
–
/var/www/textile_club/http/protected/services/SeoFiltersService.php(48): CModule->__get("db") 43 $join 44 WHERE $where ci.code = '$filterCode' AND c.seo = 1 45 ORDER BY c.sort ASC, ci.sort ASC 46 "; 47 48 if (!$filter = Yii::app()->db->createCommand($query)->queryRow()) { 49 $this->errors[] = "Filter with code = $filterCode not found"; 50 break; 51 } 52 53 $this->filters[$filterCode] = $filter; |
#5 |
+
–
/var/www/textile_club/http/protected/services/SeoFiltersService.php(16): SeoFiltersService->prepare("xlopok", "kpb") 11 * @return array 12 * @throws CException 13 */ 14 public function convert(string $filters, string $category): array 15 { 16 $this->prepare($filters, $category); 17 if ($this->check($filters)) { 18 return $this->formatGetParams(); 19 } 20 21 throw new CHttpException(404, Yii::t('catalog', 'not_found')); |
#6 |
+
–
/var/www/textile_club/http/protected/controllers/SiteController.php(111): SeoFiltersService->convert("xlopok", "kpb") 106 // $id = $routeParams[0]; 107 // } 108 109 if ($filter !== '') { 110 $service = new SeoFiltersService(); 111 $this->jsParams['seoFilters'] = $service->convert($filter, $id); 112 } 113 114 $service = new RedirectService(['catalog']); 115 $service->redirect(Yii::$app->request->url); 116 |
#7 |
unknown(0): SiteController->actionCatalog("kpb", 0, 0, 0, ...)
|
#8 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SiteController, array("kpb", 0, 0, 0, ...)) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#9 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("id" => "kpb", "filter" => "xlopok")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#10 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "kpb", "filter" => "xlopok")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#11 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#12 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#13 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("catalog") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#14 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("site/catalog") 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. 146 * This method overrides the parent implementation by registering additional core components. |
#15 |
+
–
/var/www/textile_club/http/protected/vendor/yiisoft/yii/framework/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 /** |
#16 |
+
–
/var/www/textile_club/http/index.php(217): CApplication->run() 212 213 if($_GET['test'] ?? false) { 214 echo '<pre>'; 215 var_dump($yii1Config); die; 216 } 217 Yii::createWebApplication($yii1Config)->run(); |