/home/c/cb69283/public_html/protected/modules/industries/models/Sectors.php(136)
124 } 125 126 public function getRel($id, &$data=array()) { 127 $id = str_replace("--", "", $id); 128 $data[$id] = ''; 129 $criteria = new CDbCriteria(); 130 $criteria->addCondition('id=:id'); 131 $criteria->params[':id'] = $id; 132 if (isset($_GET['lang']) && $_GET['lang']) { 133 $criteria->select = array('id','parent_id', 'title_' . $_GET['lang'] . ' as title'); 134 } 135 $data[$id] = Sectors::model()->find($criteria); 136 if ($data[$id]->parent_id) { 137 $this->getRel($data[$id]->parent_id, $data); 138 } 139 return $data; 140 } 141 public function getGroup($parent = '=0', $namegroup = '', &$return = array()) { 142 $categories = Sectors::model()->findAll(array('condition' => "parent_id" . $parent, 'order' => 'sort,title')); 143 foreach ($categories as $category) { 144 $sub = Sectors::model()->count('parent_id=' . $category->id); 145 if ($sub > 0) { 146 if ($namegroup){ 147 $return[] = array('id' => $category->id, 'title' => $category->title, 'group' => $namegroup); 148 }
#0 |
+
–
/home/c/cb69283/public_html/protected/modules/catalog/controllers/DefaultController.php(38): Sectors->getRel("75") 33 else if (isset($_GET['industries']) && $_GET['industries']) 34 { 35 $block = array('left' => array('industries' => 1), 'right' => array('type' => 1, 'producers' => 1)); 36 $render = 'views'; 37 $action = 'industries'; 38 $title = array_reverse(Sectors::model()->getRel($_GET['industries'])); 39 if (!empty($title)) 40 { 41 $description = $title[0]->getField('seoReserved'); 42 } 43 // if (isset($_GET['type']) && !Sectors::model()->findByPk($_GET['type'])->parent_id) |
#1 |
+
–
/home/c/cb69283/public_html/framework/web/actions/CInlineAction.php(50): DefaultController->actionSort() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#2 |
+
–
/home/c/cb69283/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("industries" => "75", "view" => "grid")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#3 |
+
–
/home/c/cb69283/public_html/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#4 |
+
–
/home/c/cb69283/public_html/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#5 |
+
–
/home/c/cb69283/public_html/framework/web/CWebApplication.php(277): CController->run("sort") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#6 |
+
–
/home/c/cb69283/public_html/framework/web/CWebApplication.php(136): CWebApplication->runController("catalog/default/sort") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#7 |
+
–
/home/c/cb69283/public_html/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#8 |
+
–
/home/c/cb69283/public_html/index.php(36): CApplication->run() 31 break; 32 } 33 ini_set('display_errors', 1); 34 ini_set('display_startup_errors', 1); 35 error_reporting(E_ALL); 36 Yii::createWebApplication($config)->run(); 37 38 |